Skip to content

Commit fae2f14

Browse files
committed
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
1 parent ec0a5b9 commit fae2f14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contrib/dbmirror/DBMirror.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#
3434
#
3535
##############################################################################
36-
# $Id: DBMirror.pl,v 1.4 2002/11/06 17:50:53 momjian Exp $
36+
# $Id: DBMirror.pl,v 1.5 2002/12/05 21:03:51 momjian Exp $
3737
#
3838
##############################################################################
3939

@@ -128,7 +128,7 @@ ()
128128

129129
my $setQuery;
130130
$setQuery = "SET search_path = public";
131-
$setResult = $masterConn->exec($setQuery);
131+
my $setResult = $masterConn->exec($setQuery);
132132
if($setResult->resultStatus!=PGRES_COMMAND_OK) {
133133
logErrorMessage($masterConn->errorMessage . "\n" .
134134
$setQuery);
@@ -137,7 +137,7 @@ ()
137137

138138
my $setQuery2;
139139
$setQuery2 = "SET autocommit TO 'on'";
140-
$setResult2 = $masterConn->exec($setQuery2);
140+
my $setResult2 = $masterConn->exec($setQuery2);
141141
if($setResult2->resultStatus!=PGRES_COMMAND_OK) {
142142
logErrorMessage($masterConn->errorMessage . "\n" .
143143
$setQuery2);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy