diff options
author | gshchepa/uchum@gleb.loc <> | 2007-08-31 16:59:07 +0500 |
---|---|---|
committer | gshchepa/uchum@gleb.loc <> | 2007-08-31 16:59:07 +0500 |
commit | 3e49bbd8e7319e6ce0e76465b05b2f542cda69a1 (patch) | |
tree | c9ca0c7e92c4c979b542002264f72e5f0e880220 /client/mysqldump.c | |
parent | c70dbeab8b5668d2d2abc6adec7117b4fada943d (diff) | |
download | mariadb-git-3e49bbd8e7319e6ce0e76465b05b2f542cda69a1.tar.gz |
Fixed bug #30126.
When dumping database from a 4.x server, the mysqldump client
inserted a delimiter sign inside special commentaries of the form:
/*!... CREATE DATABASE IF NOT EXISTS ... ;*/
During restoration that dump file was splitten by delimiter signs on
the client side, and the rest of some commentary strings was prepended
to following statements.
The 4x_server_emul test case option has been added for use with the
DBUG_EXECUTE_IF debugging macro. This option affects debug server
builds only to emulate particular behavior of a 4.x server for
the mysqldump client testing. Non-debugging builds are not affected.
Diffstat (limited to 'client/mysqldump.c')
-rw-r--r-- | client/mysqldump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/mysqldump.c b/client/mysqldump.c index 577e439d6a7..cc8458c7a8e 100644 --- a/client/mysqldump.c +++ b/client/mysqldump.c @@ -2898,7 +2898,7 @@ int init_dumping_tables(char *qdatabase) /* Old server version, dump generic CREATE DATABASE */ if (opt_drop_database) fprintf(md_result_file, - "\n/*!40000 DROP DATABASE IF EXISTS %s;*/\n", + "\n/*!40000 DROP DATABASE IF EXISTS %s*/;\n", qdatabase); fprintf(md_result_file, "\nCREATE DATABASE /*!32312 IF NOT EXISTS*/ %s;\n", |