mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
Added quotes around CREATE DATABASE IF EXISTS name
if -Q was given.
This commit is contained in:
parent
a6ef8839a9
commit
a6614aae0a
1 changed files with 5 additions and 2 deletions
|
@ -1350,8 +1350,11 @@ static int init_dumping(char *database)
|
|||
if (mysql_query(sock, qbuf) || !(dbinfo = mysql_store_result(sock)))
|
||||
{
|
||||
/* Old server version, dump generic CREATE DATABASE */
|
||||
fprintf(md_result_file,"\nCREATE DATABASE /*!32312 IF NOT EXISTS*/ %s;\n",
|
||||
database);
|
||||
fprintf(md_result_file,
|
||||
"\nCREATE DATABASE /*!32312 IF NOT EXISTS*/ %s%s%s;\n",
|
||||
(opt_quoted ? "`" : ""),
|
||||
database,
|
||||
(opt_quoted ? "`" : ""));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue