summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorglynastill2013-12-20 13:16:43 +0000
committerChristoph Berg2015-04-15 15:39:40 +0000
commite3d43fece536cb8a5d5c717b7fb2843e8b576bcb (patch)
tree741638cd773ddfdffc1f1048261c0d2f056ab402 /check_postgres.pl
parentc2d15dafc62c3a7498a10cf28f4e6c0fc1340987 (diff)
Change the way tables are quoted in replicate_row.
Change the way tables are quoted in replicate_row to allow for tables with schema name.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-xcheck_postgres.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/check_postgres.pl b/check_postgres.pl
index fbffae2c3..e1915ace0 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -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"};