Comment 1 for bug 197606

Revision history for this message
s.fussenegger (stf+ubuntu-launchpad) wrote : Re: Invalid db.table name 'g2_AccessMap' at /usr/bin/mysqlhotcopy line 845

Same problem here

using hardy:
ii libdbd-mysql-perl 4.005-1 A Perl5 database interface to the MySQL data
ii libmysqlclient15off 5.0.51a-3ubuntu5 MySQL database client library
ii mysql-client-5.0 5.0.51a-3ubuntu5 MySQL database client binaries
ii mysql-common 5.0.51a-3ubuntu5 MySQL database common files
ii mysql-server-5.0 5.0.51a-3ubuntu5 MySQL database server binaries

from mysqlhotcopy

sub quote_names {
  my ( $name ) = @_;
  # given a db.table name, add quotes

  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`";
}

so $name should be database.table rather than table only. maybe this was caused by the fix for bug 162393