Bug #203 mysqldump does not quote database name when run with -Q option

Submitted: 27 Mar 2003 18:13 Modified: 29 Mar 2003 2:25
Reporter: Sasha Pachev Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: mysqldump Command-line Client Severity:S1 (Critical)
Version: OS:
Assigned to: Jani Tolonen CPU Architecture:Any

[27 Mar 2003 18:13] Sasha Pachev
Description:
mysqldump does not quote database name when run with -Q option

How to repeat:
create database `t1-2`;

mysqldump -Q -A

Suggested fix:
Fix mysqldump.c so it will quote it
[27 Mar 2003 18:14] Sasha Pachev
Breaks the restore of the backup of the customer I am doing support for
[29 Mar 2003 2:25] Jani Tolonen
Fixed in 4.1, mysqldump version 10.1.

The reason why this was not fixed in 4.0, or earlier is
because 'mysql' -client prior to version 13.0 cannot handle
quoted database names. 13.0 was introduced in 4.1 due to
relative big code change in it.

Regards,
Jani

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.