|
|||||||||||
|
bk commit into 5.0 tree (gshchepa:1.2504) BUG#30126
From: <gshchepa(at)mysql.com>
Date: Fri Aug 31 2007 - 07:59:13 EDT
ChangeSet@1.2504, 2007-08-31 16:59:07+05:00, gshchepa@gleb.loc +5 -0
Fixed bug #30126.
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.
client/mysqldump.c@1.271, 2007-08-31 16:53:54+05:00, gshchepa@gleb.loc +1 -1
Fixed bug #30126.
mysql-test/r/mysqldump-compat.result@1.1, 2007-08-31 16:49:46+05:00, gshchepa@gleb.loc +4 -0 Added test case for bug #30126. mysql-test/r/mysqldump-compat.result@1.0, 2007-08-31 16:49:45+05:00, gshchepa@gleb.loc +0 -0 mysql-test/t/mysqldump-compat.opt@1.1, 2007-08-31 16:49:46+05:00, gshchepa@gleb.loc +1 -0 Added test case for bug #30126. mysql-test/t/mysqldump-compat.opt@1.0, 2007-08-31 16:49:46+05:00, gshchepa@gleb.loc +0 -0 mysql-test/t/mysqldump-compat.test@1.1, 2007-08-31 16:49:46+05:00, gshchepa@gleb.loc +13 -0 Added test case for bug #30126. mysql-test/t/mysqldump-compat.test@1.0, 2007-08-31 16:49:46+05:00, gshchepa@gleb.loc +0 -0
sql/sql_parse.cc@1.636, 2007-08-31 16:53:51+05:00, gshchepa@gleb.loc +2 -0
Fixed bug #30126.
To enforce the mysqldump client to create that statement from scratch, debugging code has been added to the mysql_execute_command function: in tcase of the --loose-debug=d,4x_server_emul option, the server returns parse error to client to emulate old behaviour. 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. diff -Nrup a/client/mysqldump.c b/client/mysqldump.c --- a/client/mysqldump.c 2007-07-31 21:00:52 +05:00@@ -0,0 +1,4 @@ +CREATE DATABASE mysqldump_30126; +USE mysqldump_30126; +CREATE TABLE t1 (c1 int); +DROP DATABASE mysqldump_30126; diff -Nrup a/mysql-test/t/mysqldump-compat.opt b/mysql-test/t/mysqldump-compat.opt --- /dev/null Wed Dec 31 16:00:00 196900@@ -0,0 +1 @@ +--loose-debug=d,4x_server_emul diff -Nrup a/mysql-test/t/mysqldump-compat.test b/mysql-test/t/mysqldump-compat.test --- /dev/null Wed Dec 31 16:00:00 196900@@ -0,0 +1,13 @@ +# Embedded server doesn't support external clients +--source include/not_embedded.inc + +# +# Bug #30126: semicolon before closing */ in /*!... CREATE DATABASE ;*/ +# + +CREATE DATABASE mysqldump_30126; +USE mysqldump_30126; +CREATE TABLE t1 (c1 int); +--exec $MYSQL_DUMP --add-drop-database mysqldump_30126 > $MYSQLTEST_VARDIR/tmp/bug30126.sql +--exec $MYSQL mysqldump_30126 < $MYSQLTEST_VARDIR/tmp/bug30126.sql +DROP DATABASE mysqldump_30126; diff -Nrup a/sql/sql_parse.cc b/sql/sql_parse.cc --- a/sql/sql_parse.cc 2007-08-05 08:53:13 +05:00@@ -3990,6 +3990,8 @@ end_with_restore_list:
}
+ my_error(ER_UNKNOWN_ERROR, MYF(0)); goto error;);
if (!strip_sp(lex->name) || check_db_name(lex->name))
{
my_error(ER_WRONG_DB_NAME, MYF(0), lex->name);
-- MySQL Code Commits Mailing List For list archives: http://lists.mysql.com/commits To unsubscribe: http://lists.mysql.com/commits?unsub=lists@pantek.comReceived on Fri Aug 31 08:01:16 2007 This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 09:01:20 EDT |
||||||||||
|
|||||||||||