mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Remove doubled quotes (used for escaping) in table names in mysqlhotcopy.
Part of fix for Bug #8136.
This commit is contained in:
parent
3229e67a20
commit
99bd939b3e
1 changed files with 4 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue