summaryrefslogtreecommitdiff
path: root/scripts/mysqlhotcopy.sh
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-02-18 12:37:18 -0800
committerunknown <jimw@mysql.com>2005-02-18 12:37:18 -0800
commitbf12579c1f85e935ea25c7a36a6d0cdc846034e1 (patch)
tree7958a67310cf424fc734f1c1e021b1e0cf183bcd /scripts/mysqlhotcopy.sh
parentab69b24928615c41461908f808465315bb57dca9 (diff)
downloadmariadb-git-bf12579c1f85e935ea25c7a36a6d0cdc846034e1.tar.gz
Remove doubled quotes (used for escaping) in table names in mysqlhotcopy.
Part of fix for Bug #8136. scripts/mysqlhotcopy.sh: Un-escape doubled quotes within table names.
Diffstat (limited to 'scripts/mysqlhotcopy.sh')
-rw-r--r--scripts/mysqlhotcopy.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/mysqlhotcopy.sh b/scripts/mysqlhotcopy.sh
index e3f4fdaf3ee..632174dc41a 100644
--- a/scripts/mysqlhotcopy.sh
+++ b/scripts/mysqlhotcopy.sh
@@ -821,7 +821,10 @@ sub get_list_of_tables {
## Remove quotes around table names
my $quote = $dbh->get_info(29); # SQL_IDENTIFIER_QUOTE_CHAR
if ($quote) {
- foreach (@dbh_tables) { s/^$quote(.*)$quote$/$1/; }
+ foreach (@dbh_tables) {
+ s/^$quote(.*)$quote$/$1/;
+ s/$quote$quote/$quote/g;
+ }
}
$dbh->disconnect();