Chris Browne cbbrowne at lists.slony.info
Wed Nov 18 08:48:08 PST 2009
Update of /home/cvsd/slony1/slony1-engine/src/backend
In directory main.slony.info:/tmp/cvs-serv29558/src/backend

Modified Files:
      Tag: REL_2_0_STABLE
	slony1_funcs.sql 
Log Message:
Bug #100 - http://www.slony.info/bugzilla/show_bug.cgi?id=100

Typo: column referred to tab_reloid when it should refer to seq_reloid

As reported by Shaun Jackson


Index: slony1_funcs.sql
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/src/backend/slony1_funcs.sql,v
retrieving revision 1.145.2.22
retrieving revision 1.145.2.23
diff -C2 -d -r1.145.2.22 -r1.145.2.23
*** slony1_funcs.sql	23 Oct 2009 15:32:55 -0000	1.145.2.22
--- slony1_funcs.sql	18 Nov 2009 16:48:06 -0000	1.145.2.23
***************
*** 5125,5129 ****
  
  	for prec in select seq_id from @NAMESPACE at .sl_sequence loop
! 		update @NAMESPACE at .sl_sequence set seq_reloid = (select oid from pg_class pc where relkind <> 'S' and not exists (select 1 from @NAMESPACE at .sl_sequence t2 where t2.tab_reloid = pc.oid) limit 1)
  		where tab_id = prec.seq_id;
  	end loop;
--- 5125,5129 ----
  
  	for prec in select seq_id from @NAMESPACE at .sl_sequence loop
! 		update @NAMESPACE at .sl_sequence set seq_reloid = (select oid from pg_class pc where relkind <> 'S' and not exists (select 1 from @NAMESPACE at .sl_sequence t2 where t2.seq_reloid = pc.oid) limit 1)
  		where tab_id = prec.seq_id;
  	end loop;



More information about the Slony1-commit mailing list