diff options
author | unknown <jimw@mysql.com> | 2005-03-03 10:47:49 -0800 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2005-03-03 10:47:49 -0800 |
commit | 45058c68963f529e652ca4f5ba4d7659206a0454 (patch) | |
tree | 40ce90da2842e7427fc3f5aa9befc97db6ff7f93 | |
parent | b0727186573b1e7ece6b27aeaebf7717b2219bfa (diff) | |
parent | bf12579c1f85e935ea25c7a36a6d0cdc846034e1 (diff) | |
download | mariadb-git-45058c68963f529e652ca4f5ba4d7659206a0454.tar.gz |
Merge mysql.com:/home/jimw/my/mysql-4.1-8136
into mysql.com:/home/jimw/my/mysql-4.1-clean
-rw-r--r-- | scripts/mysqlhotcopy.sh | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/scripts/mysqlhotcopy.sh b/scripts/mysqlhotcopy.sh index 2cfe91da115..632174dc41a 100644 --- a/scripts/mysqlhotcopy.sh +++ b/scripts/mysqlhotcopy.sh @@ -272,10 +272,7 @@ foreach my $rdb ( @db_desc ) { my $negated; if ($rdb->{t_regex}) { $t_regex = $rdb->{t_regex}; ## assign temporary regex - $negated = $t_regex =~ tr/~//d; ## remove and count - ## negation operator: we - ## don't allow ~ in table - ## names + $negated = $t_regex =~ s/^~//; ## note and remove negation operator $t_regex = qr/$t_regex/; ## make regex string from ## user regex @@ -820,6 +817,16 @@ sub get_list_of_tables { }); my @dbh_tables = eval { $dbh->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/; + s/$quote$quote/$quote/g; + } + } + $dbh->disconnect(); return @dbh_tables; } |