CVS User Account cvsuser
Wed Apr 13 16:30:46 PDT 2005
Log Message:
-----------
Fix determineAttkindUnique() for 8.1. Apparently our stored procedure
relied on a bug in PostgreSQL. Returning NULL for an array index out
of bounds seems correct to me.

Jan

Modified Files:
--------------
    slony1-engine/src/backend:
        slony1_funcs.sql (r1.58 -> r1.59)

-------------- next part --------------
Index: slony1_funcs.sql
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/src/backend/slony1_funcs.sql,v
retrieving revision 1.58
retrieving revision 1.59
diff -Lsrc/backend/slony1_funcs.sql -Lsrc/backend/slony1_funcs.sql -u -w -r1.58 -r1.59
--- src/backend/slony1_funcs.sql
+++ src/backend/slony1_funcs.sql
@@ -4560,7 +4560,7 @@
 		loop
 			select indkey[v_i] into v_attno from "pg_catalog".pg_index
 					where indexrelid = v_idxrow.indexrelid;
-			if v_attno = 0 then
+			if v_attno isnull or v_attno = 0 then
 				exit;
 			end if;
 			if v_attrow.attnum = v_attno then


More information about the Slony1-commit mailing list