Index: openacs-4/packages/dotlrn-calendar/sql/postgresql/dotlrn-calendar-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-calendar/sql/postgresql/dotlrn-calendar-create.sql,v
diff -u -N -r1.3 -r1.4
--- openacs-4/packages/dotlrn-calendar/sql/postgresql/dotlrn-calendar-create.sql	9 Aug 2002 18:39:28 -0000	1.3
+++ openacs-4/packages/dotlrn-calendar/sql/postgresql/dotlrn-calendar-create.sql	27 Oct 2014 16:41:18 -0000	1.4
@@ -24,142 +24,149 @@
 -- $Id$
 --
 
-create function inline_0()
-returns integer as '
-declare
+
+
+--
+-- procedure inline_0/0
+--
+CREATE OR REPLACE FUNCTION inline_0(
+
+) RETURNS integer AS $$
+DECLARE
 	foo integer;
-begin
+BEGIN
 	-- create the implementation
 	foo := acs_sc_impl__new (
-		''dotlrn_applet'',
-		''dotlrn_calendar'',
-		''dotlrn_calendar''
+		'dotlrn_applet',
+		'dotlrn_calendar',
+		'dotlrn_calendar'
 	);
 
 	-- GetPrettyName
 	foo := acs_sc_impl_alias__new (
-	       ''dotlrn_applet'',
-	       ''dotlrn_calendar'',
-	       ''GetPrettyName'',
-	       ''dotlrn_calendar::get_pretty_name'',
-	       ''TCL''
+	       'dotlrn_applet',
+	       'dotlrn_calendar',
+	       'GetPrettyName',
+	       'dotlrn_calendar::get_pretty_name',
+	       'TCL'
 	);
 
 	-- AddApplet
 	foo := acs_sc_impl_alias__new (
-	       ''dotlrn_applet'',
-	       ''dotlrn_calendar'',
-	       ''AddApplet'',
-	       ''dotlrn_calendar::add_applet'',
-	       ''TCL''
+	       'dotlrn_applet',
+	       'dotlrn_calendar',
+	       'AddApplet',
+	       'dotlrn_calendar::add_applet',
+	       'TCL'
 	);
 
 	-- RemoveApplet
 	foo := acs_sc_impl_alias__new (
-	       ''dotlrn_applet'',
-	       ''dotlrn_calendar'',
-	       ''RemoveApplet'',
-	       ''dotlrn_calendar::remove_applet'',
-	       ''TCL''
+	       'dotlrn_applet',
+	       'dotlrn_calendar',
+	       'RemoveApplet',
+	       'dotlrn_calendar::remove_applet',
+	       'TCL'
 	);
 
 	-- AddAppletToCommunity
 	foo := acs_sc_impl_alias__new (
-	       ''dotlrn_applet'',
-	       ''dotlrn_calendar'',
-	       ''AddAppletToCommunity'',
-	       ''dotlrn_calendar::add_applet_to_community'',
-	       ''TCL''
+	       'dotlrn_applet',
+	       'dotlrn_calendar',
+	       'AddAppletToCommunity',
+	       'dotlrn_calendar::add_applet_to_community',
+	       'TCL'
 	);
 
 	-- RemoveAppletFromCommunity
 	foo := acs_sc_impl_alias__new (
-	       ''dotlrn_applet'',
-	       ''dotlrn_calendar'',
-	       ''RemoveAppletFromCommunity'',
-	       ''dotlrn_calendar::remove_applet_from_community'',
-	       ''TCL''
+	       'dotlrn_applet',
+	       'dotlrn_calendar',
+	       'RemoveAppletFromCommunity',
+	       'dotlrn_calendar::remove_applet_from_community',
+	       'TCL'
 	);
 
 	-- AddUser
 	foo := acs_sc_impl_alias__new (
-	       ''dotlrn_applet'',
-	       ''dotlrn_calendar'',
-	       ''AddUser'',
-	       ''dotlrn_calendar::add_user'',
-	       ''TCL''
+	       'dotlrn_applet',
+	       'dotlrn_calendar',
+	       'AddUser',
+	       'dotlrn_calendar::add_user',
+	       'TCL'
 	);
 
 	-- RemoveUser
 	foo := acs_sc_impl_alias__new (
-	       ''dotlrn_applet'',
-	       ''dotlrn_calendar'',
-	       ''RemoveUser'',
-	       ''dotlrn_calendar::remove_user'',
-	       ''TCL''
+	       'dotlrn_applet',
+	       'dotlrn_calendar',
+	       'RemoveUser',
+	       'dotlrn_calendar::remove_user',
+	       'TCL'
 	);
 
 	-- AddUserToCommunity
 	foo := acs_sc_impl_alias__new (
-	       ''dotlrn_applet'',
-	       ''dotlrn_calendar'',
-	       ''AddUserToCommunity'',
-	       ''dotlrn_calendar::add_user_to_community'',
-	       ''TCL''
+	       'dotlrn_applet',
+	       'dotlrn_calendar',
+	       'AddUserToCommunity',
+	       'dotlrn_calendar::add_user_to_community',
+	       'TCL'
 	);
 
 	-- RemoveUserFromCommunity
 	foo := acs_sc_impl_alias__new (
-	       ''dotlrn_applet'',
-	       ''dotlrn_calendar'',
-	       ''RemoveUserFromCommunity'',
-	       ''dotlrn_calendar::remove_user_from_community'',
-	       ''TCL''
+	       'dotlrn_applet',
+	       'dotlrn_calendar',
+	       'RemoveUserFromCommunity',
+	       'dotlrn_calendar::remove_user_from_community',
+	       'TCL'
 	);
 
     -- AddPortlet
     foo := acs_sc_impl_alias__new (
-        ''dotlrn_applet'',
-        ''dotlrn_calendar'',
-        ''AddPortlet'',
-        ''dotlrn_calendar::add_portlet'',
-        ''TCL''
+        'dotlrn_applet',
+        'dotlrn_calendar',
+        'AddPortlet',
+        'dotlrn_calendar::add_portlet',
+        'TCL'
     );
 
     -- RemovePortlet
     foo := acs_sc_impl_alias__new (
-        ''dotlrn_applet'',
-        ''dotlrn_calendar'',
-        ''RemovePortlet'',
-        ''dotlrn_calendar::remove_portlet'',
-        ''TCL''
+        'dotlrn_applet',
+        'dotlrn_calendar',
+        'RemovePortlet',
+        'dotlrn_calendar::remove_portlet',
+        'TCL'
     );
 
     -- Clone
     foo := acs_sc_impl_alias__new (
-        ''dotlrn_applet'',
-        ''dotlrn_calendar'',
-        ''Clone'',
-        ''dotlrn_calendar::clone'',
-        ''TCL''
+        'dotlrn_applet',
+        'dotlrn_calendar',
+        'Clone',
+        'dotlrn_calendar::clone',
+        'TCL'
     );
 
     foo := acs_sc_impl_alias__new (
-        ''dotlrn_applet'',
-        ''dotlrn_calendar'',
-        ''ChangeEventHandler'',
-        ''dotlrn_calendar::change_event_handler'',
-        ''TCL''
+        'dotlrn_applet',
+        'dotlrn_calendar',
+        'ChangeEventHandler',
+        'dotlrn_calendar::change_event_handler',
+        'TCL'
     );
 
 	-- Add the binding
 	perform acs_sc_binding__new (
-	    ''dotlrn_applet'',
-	    ''dotlrn_calendar''
+	    'dotlrn_applet',
+	    'dotlrn_calendar'
 	);
 
 	return 0;
 
-end;' language 'plpgsql';
+END;
+$$ LANGUAGE plpgsql;
 select inline_0();
 drop function inline_0();
