Thu Jul 13 14:39:25 PDT 2006
- Previous message: [Slony1-commit] By cbbrowne: Version checking code in slonik.c broke in the way it
- Next message: [Slony1-commit] By cbbrowne: Fix up test1; it had gotten "blathered on" by a would-be
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Log Message:
-----------
slony1-funcs.sql used a CONTINUE statement only supported in PG 8.0+;
unrolled the logic...
Modified Files:
--------------
slony1-engine/src/backend:
slony1_funcs.sql (r1.90 -> r1.91)
-------------- next part --------------
Index: slony1_funcs.sql
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/src/backend/slony1_funcs.sql,v
retrieving revision 1.90
retrieving revision 1.91
diff -Lsrc/backend/slony1_funcs.sql -Lsrc/backend/slony1_funcs.sql -u -w -r1.90 -r1.91
--- src/backend/slony1_funcs.sql
+++ src/backend/slony1_funcs.sql
@@ -341,13 +341,13 @@
while v_i <= v_l loop
if substr(p_tab_fqname, v_i, 1) != ''"'' then
v_i := v_i + 1;
- continue;
- end if;
+ else
v_i := v_i + 1;
if substr(p_tab_fqname, v_i, 1) != ''"'' then
exit;
end if;
v_i := v_i + 1;
+ end if;
end loop;
else
-- first part of ident is not quoted, search for the dot directly
@@ -2710,6 +2710,10 @@
p_fqname, p_tab_idxname;
end if;
+ -- ----
+ -- Verify that the columns in the PK (or candidate) are not NULLABLE
+ -- ----
+
v_pkcand_nn := ''f'';
for v_prec in select attname from "pg_catalog".pg_attribute where attrelid =
(select oid from "pg_catalog".pg_class where oid = v_tab_reloid)
- Previous message: [Slony1-commit] By cbbrowne: Version checking code in slonik.c broke in the way it
- Next message: [Slony1-commit] By cbbrowne: Fix up test1; it had gotten "blathered on" by a would-be
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list