Chris Browne cbbrowne at lists.slony.info
Thu Dec 3 14:53:56 PST 2009
Update of /home/cvsd/slony1/slony1-engine/src/backend
In directory main.slony.info:/tmp/cvs-serv28349

Modified Files:
      Tag: REL_1_2_STABLE
	slony1_funcs.sql 
Log Message:
Add namespace to drop_function_if_exists()


Index: slony1_funcs.sql
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/src/backend/slony1_funcs.sql,v
retrieving revision 1.98.2.42
retrieving revision 1.98.2.43
diff -C2 -d -r1.98.2.42 -r1.98.2.43
*** slony1_funcs.sql	1 Dec 2009 20:40:25 -0000	1.98.2.42
--- slony1_funcs.sql	3 Dec 2009 22:53:54 -0000	1.98.2.43
***************
*** 3766,3770 ****
  begin
    if exists (select 1 from information_schema.routines where routine_schema = ''@NAMESPACE@'' and routine_name = p_function) then
! 	v_drop := ''drop function '' || p_function || ''('' || p_args || '');'';
  	execute v_drop;
    end if;
--- 3766,3770 ----
  begin
    if exists (select 1 from information_schema.routines where routine_schema = ''@NAMESPACE@'' and routine_name = p_function) then
! 	v_drop := ''drop function @NAMESPACE at .'' || p_function || ''('' || p_args || '');'';
  	execute v_drop;
    end if;



More information about the Slony1-commit mailing list