diff options
Diffstat (limited to 'contrib/dbmirror/DBMirror.pl')
-rwxr-xr-x | contrib/dbmirror/DBMirror.pl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/dbmirror/DBMirror.pl b/contrib/dbmirror/DBMirror.pl index 63b009b68fc..cdeafc59da8 100755 --- a/contrib/dbmirror/DBMirror.pl +++ b/contrib/dbmirror/DBMirror.pl @@ -33,7 +33,7 @@ # # ############################################################################## -# $PostgreSQL: pgsql/contrib/dbmirror/DBMirror.pl,v 1.10 2004/07/02 00:58:09 joe Exp $ +# $PostgreSQL: pgsql/contrib/dbmirror/DBMirror.pl,v 1.10.4.1 2006/05/21 19:57:38 momjian Exp $ # ############################################################################## @@ -437,7 +437,7 @@ sub mirrorInsert($$$$$) { if(defined $recordValues{$column}) { my $quotedValue = $recordValues{$column}; $quotedValue =~ s/\\/\\\\/g; - $quotedValue =~ s/'/\\'/g; + $quotedValue =~ s/'/''/g; $valuesQuery .= "'$quotedValue'"; } else { @@ -617,7 +617,7 @@ sub mirrorUpdate($$$$$) { if(defined $currentValue ) { $quotedValue = $currentValue; $quotedValue =~ s/\\/\\\\/g; - $quotedValue =~ s/'/\\'/g; + $quotedValue =~ s/'/''/g; $updateQuery .= "'$quotedValue'"; } else { @@ -639,7 +639,7 @@ sub mirrorUpdate($$$$$) { if(defined $currentValue) { $quotedValue = $currentValue; $quotedValue =~ s/\\/\\\\/g; - $quotedValue =~ s/'/\\'/g; + $quotedValue =~ s/'/''/g; $updateQuery .= "'$quotedValue'"; } else { |