diff options
author | unknown <gluh@mysql.com/eagle.(none)> | 2007-11-02 12:24:45 +0400 |
---|---|---|
committer | unknown <gluh@mysql.com/eagle.(none)> | 2007-11-02 12:24:45 +0400 |
commit | 2c6a5fd27e567fc41834a4af527736fa68ec0a73 (patch) | |
tree | 02c7d6a7bfbb39c80c5c53852c397634c1eb6c4b /mysql-test/t/mysqldump.test | |
parent | 61bd5d0fec4e4089642aac3f0d4b07c354dec5c8 (diff) | |
download | mariadb-git-2c6a5fd27e567fc41834a4af527736fa68ec0a73.tar.gz |
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.
client/mysqldump.c:
db name should be quoted. this code does communication with the server.
it's always ok to quote names in this case.
mysql-test/r/mysqldump.result:
test result
mysql-test/t/mysqldump.test:
test case
Diffstat (limited to 'mysql-test/t/mysqldump.test')
-rw-r--r-- | mysql-test/t/mysqldump.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/t/mysqldump.test b/mysql-test/t/mysqldump.test index 158e8a769bd..0e4e9989ffa 100644 --- a/mysql-test/t/mysqldump.test +++ b/mysql-test/t/mysqldump.test @@ -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 # |