1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Bug#31113 mysqldump 5.1 can't handle a dash ("-") in database names

db name should be quoted. this code does communication with the server.
it's always ok to quote names in this case.
This commit is contained in:
gluh@mysql.com/eagle.(none)
2007-11-02 12:24:45 +04:00
parent e0e6547296
commit b0e9fa31af
3 changed files with 34 additions and 1 deletions

View File

@ -1788,6 +1788,18 @@ TRUNCATE mysql.event;
--exec $MYSQL < $MYSQLTEST_VARDIR/tmp/bug29938.sql
SHOW EVENTS;
--echo #
--echo # Bug#31113 mysqldump 5.1 can't handle a dash ("-") in database names
--echo #
create database `test-database`;
use `test-database`;
create table test (a int);
--exec $MYSQL_DUMP --compact --opt --quote-names test-database
drop database `test-database`;
use test;
--echo #
--echo # End of 5.1 tests
--echo #