Bug #1192 mysqldump --quote-names do not work for databases
Submitted: 4 Sep 2003 3:23 Modified: 10 Dec 2003 7:00
Reporter: Peter Zaitsev (Basic Quality Contributor) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: mysqldump Command-line Client Severity:S3 (Non-critical)
Version:4.0.14 OS:Any (all)
Assigned to: Jani Tolonen CPU Architecture:Any

[4 Sep 2003 3:23] Peter Zaitsev
Description:
mysqldump --quote-names  does not quote database names. 

This does not allow to import created dump:

How to repeat:
1)run  create database `1942`

try to dump it:

ozzzz:~# mysqldump --opt --quote-names -A | less
-- MySQL dump 9.08
--
-- Host: localhost    Database: 
---------------------------------------------------------
-- Server version       4.0.14-log

--
-- Current Database: 1942
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ 1942;

USE 1942;
[10 Dec 2003 7:00] Jani Tolonen
Fixed.