diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-12-05 21:04:14 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-12-05 21:04:14 +0000 |
commit | 530bf204f09c17716180bb71ed5d29271dd0e7c9 (patch) | |
tree | 2ec1f92c345b953577b5254b8f9f480e6b16ffb9 | |
parent | 24536e5b3f3d860ed4e3f28c91c51efca0aaee5e (diff) |
It looks like the problem was introduced when the "SET autocommit" and
"SET search_path" commands were added to the beginning of the script.
The attatched patch should fix the problem. It probably should be
applied against the 7.3 and 7.4 branches.
Steven Singer
-rwxr-xr-x | contrib/dbmirror/DBMirror.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/dbmirror/DBMirror.pl b/contrib/dbmirror/DBMirror.pl index e41a45e9162..cf32511beb5 100755 --- a/contrib/dbmirror/DBMirror.pl +++ b/contrib/dbmirror/DBMirror.pl @@ -33,7 +33,7 @@ # # ############################################################################## -# $Id: DBMirror.pl,v 1.3.2.1 2002/11/06 17:51:40 momjian Exp $ +# $Id: DBMirror.pl,v 1.3.2.2 2002/12/05 21:04:14 momjian Exp $ # ############################################################################## @@ -128,7 +128,7 @@ sub Main() { my $setQuery; $setQuery = "SET search_path = public"; - $setResult = $masterConn->exec($setQuery); + my $setResult = $masterConn->exec($setQuery); if($setResult->resultStatus!=PGRES_COMMAND_OK) { logErrorMessage($masterConn->errorMessage . "\n" . $setQuery); @@ -137,7 +137,7 @@ sub Main() { my $setQuery2; $setQuery2 = "SET autocommit TO 'on'"; - $setResult2 = $masterConn->exec($setQuery2); + my $setResult2 = $masterConn->exec($setQuery2); if($setResult2->resultStatus!=PGRES_COMMAND_OK) { logErrorMessage($masterConn->errorMessage . "\n" . $setQuery2); |