From bf12579c1f85e935ea25c7a36a6d0cdc846034e1 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 18 Feb 2005 12:37:18 -0800 Subject: 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. --- scripts/mysqlhotcopy.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts/mysqlhotcopy.sh') 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(); -- cgit v1.2.1