CVS User Account cvsuser
Wed Nov 8 13:56:00 PST 2006
Log Message:
-----------
Fix to DDL test - $db was getting reset to the subscriber node, so
2nd test wasn't loading data into the origin.

Modified Files:
--------------
    slony1-engine/tests/testddl:
        generate_dml.sh (r1.4 -> r1.5)

-------------- next part --------------
Index: generate_dml.sh
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/tests/testddl/generate_dml.sh,v
retrieving revision 1.4
retrieving revision 1.5
diff -Ltests/testddl/generate_dml.sh -Ltests/testddl/generate_dml.sh -u -w -r1.4 -r1.5
--- tests/testddl/generate_dml.sh
+++ tests/testddl/generate_dml.sh
@@ -82,8 +82,9 @@
 
   status "Generate some more data"
   generate_initdata
-  status "loading extra data"
-  $pgbindir/psql -h $host -U $user -d $db < $mktmp/generate.data 1> $LOG 2> $LOG
+  eval db=\$DB${originnode}
+  status "loading extra data to node $db"
+  $pgbindir/psql -h $host -p $port -U $user -d $db < $mktmp/generate.data 1> $LOG 2> $LOG
 
   status "done"
 }



More information about the Slony1-commit mailing list