Change the way tables are quoted in replicate_row.
authorglynastill <[email protected]>
Fri, 20 Dec 2013 13:16:43 +0000 (13:16 +0000)
committerChristoph Berg <[email protected]>
Wed, 15 Apr 2015 15:39:40 +0000 (17:39 +0200)
Change the way tables are quoted in replicate_row to allow for tables with schema name.

check_postgres.pl

index fbffae2c30e159a81184df22ac924367498c51ab..e1915ace0dbbdd26b5dc345f1d4da34f61496c7d 100755 (executable)
@@ -6149,7 +6149,7 @@ sub check_replicate_row {
     my ($table,$pk,$id,$col,$val1,$val2) = (@repinfo);
 
     ## Quote everything, just to be safe (e.g. columns named 'desc')
-    $table = qq{"$table"};
+    $table =~ s/([^\.]+)/\"$1\"/g;
     $pk    = qq{"$pk"};
     $col   = qq{"$col"};