mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 23:54:31 +02: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. 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
This commit is contained in:
parent
61bd5d0fec
commit
2c6a5fd27e
3 changed files with 34 additions and 1 deletions
|
|
@ -4212,5 +4212,24 @@ TRUNCATE mysql.event;
|
|||
SHOW EVENTS;
|
||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||
#
|
||||
# Bug#31113 mysqldump 5.1 can't handle a dash ("-") in database names
|
||||
#
|
||||
create database `test-database`;
|
||||
use `test-database`;
|
||||
create table test (a int);
|
||||
DROP TABLE IF EXISTS `test`;
|
||||
SET @saved_cs_client = @@character_set_client;
|
||||
SET character_set_client = utf8;
|
||||
CREATE TABLE `test` (
|
||||
`a` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
||||
SET character_set_client = @saved_cs_client;
|
||||
LOCK TABLES `test` WRITE;
|
||||
/*!40000 ALTER TABLE `test` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `test` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
drop database `test-database`;
|
||||
use test;
|
||||
#
|
||||
# End of 5.1 tests
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue