Commit a6614aae authored by unknown's avatar unknown

Added quotes around CREATE DATABASE IF EXISTS `name` if -Q was given.

parent a6ef8839
...@@ -1350,8 +1350,11 @@ static int init_dumping(char *database) ...@@ -1350,8 +1350,11 @@ static int init_dumping(char *database)
if (mysql_query(sock, qbuf) || !(dbinfo = mysql_store_result(sock))) if (mysql_query(sock, qbuf) || !(dbinfo = mysql_store_result(sock)))
{ {
/* Old server version, dump generic CREATE DATABASE */ /* Old server version, dump generic CREATE DATABASE */
fprintf(md_result_file,"\nCREATE DATABASE /*!32312 IF NOT EXISTS*/ %s;\n", fprintf(md_result_file,
database); "\nCREATE DATABASE /*!32312 IF NOT EXISTS*/ %s%s%s;\n",
(opt_quoted ? "`" : ""),
database,
(opt_quoted ? "`" : ""));
} }
else else
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment