Index: openacs-4/packages/acs-kernel/sql/postgresql/postgresql.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-kernel/sql/postgresql/postgresql.sql,v
diff -u -r1.44 -r1.45
--- openacs-4/packages/acs-kernel/sql/postgresql/postgresql.sql	31 Mar 2013 12:02:19 -0000	1.44
+++ openacs-4/packages/acs-kernel/sql/postgresql/postgresql.sql	2 Apr 2013 09:35:57 -0000	1.45
@@ -353,11 +353,11 @@
 BEGIN
     select into v_bitfromint4_count count(*) from pg_proc where proname = 'bitfromint4';
     if v_bitfromint4_count = 0 then
-	create or replace function bitfromint4 (integer) returns bit varying as $$
+	create or replace function bitfromint4 (integer) returns bit varying as '
 	begin 
     	    return $1::bit(32);
 	end;
-        $$ language plpgsql immutable strict;
+        ' language plpgsql immutable strict;
    end if;
    return 1;
 END;
@@ -381,11 +381,11 @@
 BEGIN
     select into v_bittoint4_count count(*) from pg_proc where proname = 'bittoint4';
     if v_bittoint4_count = 0 then
-	create or replace function bittoint4 (bit varying) returns integer as $$
+	create or replace function bittoint4 (bit varying) returns integer as '
 	begin 
     	    return "int4"($1);
 	end;
-        $$ language plpgsql immutable strict;
+        ' language plpgsql immutable strict;
    end if;
    return 1;
 END;
