Commit bf12579c authored by unknown's avatar unknown

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.
parent ab69b249
...@@ -821,7 +821,10 @@ sub get_list_of_tables { ...@@ -821,7 +821,10 @@ sub get_list_of_tables {
## Remove quotes around table names ## Remove quotes around table names
my $quote = $dbh->get_info(29); # SQL_IDENTIFIER_QUOTE_CHAR my $quote = $dbh->get_info(29); # SQL_IDENTIFIER_QUOTE_CHAR
if ($quote) { if ($quote) {
foreach (@dbh_tables) { s/^$quote(.*)$quote$/$1/; } foreach (@dbh_tables) {
s/^$quote(.*)$quote$/$1/;
s/$quote$quote/$quote/g;
}
} }
$dbh->disconnect(); $dbh->disconnect();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment