mariadb/client
Nirbhay Choubey 876502d743 Bug#11766310 : 59398: MYSQLDUMP 5.1 CAN'T HANDLE A DASH
("-") IN DATABASE NAMES IN ALTER DATABASE.

mysqldump did not quote database name in 'ALTER DATABASE'
statements in its output. This can further cause a failure
while loading if database name contains a hyphen '-'.

This happened as, while printing the 'ALTER DATABASE'
statements, the database name was not quoted.

Fixed by quoting the database name.


client/mysqldump.c:
  Bug#11766310 : 59398: MYSQLDUMP 5.1 CAN'T HANDLE A DASH
                 ("-") IN DATABASE NAMES IN ALTER DATABASE.
  
  Modified the print statement in order to print the quoted
  database name for 'ALTER DATABASE' statements.
mysql-test/r/mysqldump.result:
  Added a test case for bug#11766310.
mysql-test/t/mysqldump.test:
  Added a test case for bug#11766310.
2011-02-21 12:37:24 +05:30
..
.cvsignore
client_priv.h
CMakeLists.txt
completion_hash.cc
completion_hash.h
echo.c
get_password.c
Makefile.am
my_readline.h Fixed bug#57450 - mysql client enter in an infinite loop 2011-02-05 11:02:00 +06:00
mysql.cc Follow up fix for bug#57450. 2011-02-09 12:46:12 +06:00
mysql_upgrade.c
mysqladmin.cc
mysqlbinlog.cc
mysqlcheck.c
mysqldump.c Bug#11766310 : 59398: MYSQLDUMP 5.1 CAN'T HANDLE A DASH 2011-02-21 12:37:24 +05:30
mysqlimport.c
mysqlshow.c
mysqlslap.c
mysqltest.cc
readline.cc Follow up fix for bug#57450. 2011-02-09 17:13:17 +06:00
sql_string.cc
sql_string.h