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.
parent d75d6da8
......@@ -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`";
}
......
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