1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Added quotes around database name, when using -Q.

This commit is contained in:
unknown
2003-03-29 16:59:03 +02:00
parent 9c3d7df569
commit a6ef8839a9

View File

@ -36,7 +36,7 @@
** Added --single-transaction option 06/06/2002 by Peter Zaitsev
*/
#define DUMP_VERSION "10.0"
#define DUMP_VERSION "10.1"
#include <my_global.h>
#include <my_sys.h>
@ -1362,7 +1362,9 @@ static int init_dumping(char *database)
}
}
}
fprintf(md_result_file,"\nUSE %s;\n", database);
fprintf(md_result_file,"\nUSE %s%s%s;\n", (opt_quoted ? "`" : ""),
database,
(opt_quoted ? "`" : ""));
}
}
if (extended_insert)