summaryrefslogtreecommitdiff
path: root/scripts/mysqlhotcopy.sh
diff options
context:
space:
mode:
authorjani@rhols221.adsl.netsonic.fi <>2003-07-04 23:06:21 +0300
committerjani@rhols221.adsl.netsonic.fi <>2003-07-04 23:06:21 +0300
commitfe025d40c48d28542aa2169f417c8127a737356d (patch)
treeed3dc67e3fe3018c6c9f36cbed8dbc4758543c4f /scripts/mysqlhotcopy.sh
parentd75d6da8c0df027789f6bd9e96b1a27be26e9375 (diff)
downloadmariadb-git-fe025d40c48d28542aa2169f417c8127a737356d.tar.gz
Fixed a compatibility bug in mysqlhotcopy between different
versions of DBD. New mysqlhotcopy version supports both old and new DBD versions while versions elder than 1.19 support only old DBD versions.
Diffstat (limited to 'scripts/mysqlhotcopy.sh')
-rw-r--r--scripts/mysqlhotcopy.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/mysqlhotcopy.sh b/scripts/mysqlhotcopy.sh
index a89a8919752..fa35a1c6555 100644
--- a/scripts/mysqlhotcopy.sh
+++ b/scripts/mysqlhotcopy.sh
@@ -37,7 +37,7 @@ WARNING: THIS PROGRAM IS STILL IN BETA. Comments/patches welcome.
# Documentation continued at end of file
-my $VERSION = "1.18";
+my $VERSION = "1.19";
my $opt_tmpdir = $ENV{TMPDIR} || "/tmp";
@@ -770,6 +770,10 @@ sub quote_names {
my ($db, $table, @cruft) = split( /\./, $name );
die "Invalid db.table name '$name'" if (@cruft || !defined $db || !defined $table );
+ # Earlier versions of DBD return table name non-quoted,
+ # such as DBD-2.1012 and the newer ones, such as DBD-2.9002
+ # returns it quoted. Let's have a support for both.
+ $table=~ s/\`//g;
return "`$db`.`$table`";
}