Chris Browne cbbrowne at lists.slony.info
Tue Jul 15 15:25:46 PDT 2008
Update of /home/cvsd/slony1/slony1-engine/src/backend
In directory main.slony.info:/tmp/cvs-serv10307/src/backend

Modified Files:
	slony1_funcs.sql 
Log Message:
Per bug #18 (http://www.slony.info/bugzilla/show_bug.cgi?id=18)
change HEAD to strip trailing "v's" from the attribute info passed to
the logtrigger function.

This includes adding a test case where we make sure that the primary key
has bits of it separated by non-key attributes.



Index: slony1_funcs.sql
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/src/backend/slony1_funcs.sql,v
retrieving revision 1.140
retrieving revision 1.141
diff -C2 -d -r1.140 -r1.141
*** slony1_funcs.sql	6 Jun 2008 20:56:44 -0000	1.140
--- slony1_funcs.sql	15 Jul 2008 22:25:44 -0000	1.141
***************
*** 4805,4808 ****
--- 4805,4811 ----
  	end loop;
  
+ 	-- Strip off trailing v characters as they are not needed by the logtrigger
+ 	v_attkind := pg_catalog.rtrim(v_attkind, ''v'');
+ 
  	--
  	-- Return the resulting attkind



More information about the Slony1-commit mailing list