Fri Aug 26 18:03:44 PDT 2005
- Previous message: [Slony1-commit] By cbbrowne: Add in something observed about renaming column names...
- Next message: [Slony1-commit] By darcyb: pgpipe is not defined in postgresql versions prior to 8.0,
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Log Message:
-----------
Fix execute script bug introduced by rev 1.43 I'll take the pointy hat for commiting a untested patch.
Modified Files:
--------------
slony1-engine/src/slonik:
slonik.c (r1.47 -> r1.48)
-------------- next part --------------
Index: slonik.c
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/src/slonik/slonik.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -Lsrc/slonik/slonik.c -Lsrc/slonik/slonik.c -u -w -r1.47 -r1.48
--- src/slonik/slonik.c
+++ src/slonik/slonik.c
@@ -3817,7 +3817,7 @@
if (db_begin_xact((SlonikStmt *) stmt, adminfo1) < 0)
return -1;
- dstring_init(&query);
+ dstring_init(&script);
sprintf(rex2, "\"_%s\"", stmt->hdr.script->clustername);
@@ -3828,8 +3828,9 @@
replace_token(rex3, rex1, "@CLUSTERNAME@", stmt->hdr.script->clustername);
replace_token(buf, rex3, "@NAMESPACE@", rex2);
rc = strlen(buf);
- dstring_nappend(&query, buf, rc);
+ dstring_nappend(&script, buf, rc);
}
+ dstring_terminate(&script);
dstring_init(&query);
slon_mkquery(&query,
- Previous message: [Slony1-commit] By cbbrowne: Add in something observed about renaming column names...
- Next message: [Slony1-commit] By darcyb: pgpipe is not defined in postgresql versions prior to 8.0,
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list