Index: openacs-4/packages/acs-kernel/sql/postgresql/rel-constraints-drop.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-kernel/sql/postgresql/rel-constraints-drop.sql,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-kernel/sql/postgresql/rel-constraints-drop.sql 18 Jun 2004 18:21:57 -0000 1.2 +++ openacs-4/packages/acs-kernel/sql/postgresql/rel-constraints-drop.sql 7 Jul 2011 10:46:02 -0000 1.3 @@ -5,11 +5,12 @@ -- @creation-date 2000-11-22 -- @cvs-id $Id$ \t -create function inline_0 () returns integer as ' -begin - PERFORM acs_rel_type__drop_type(''rel_constraint''); +CREATE OR REPLACE FUNCTION inline_0 () RETURNS integer AS $$ +BEGIN + PERFORM acs_rel_type__drop_type('rel_constraint'); return null; -end;' language 'plpgsql'; +END; +$$ LANGUAGE plpgsql; select inline_0 (); drop function inline_0 ();