diff options
author | unknown <kent@kent-amd64.(none)> | 2006-11-29 14:26:47 +0100 |
---|---|---|
committer | unknown <kent@kent-amd64.(none)> | 2006-11-29 14:26:47 +0100 |
commit | 412d284e063471a17d4e445a9c80b9b0d1c40182 (patch) | |
tree | 822b65ac87350eb74e8062f63f62260420c384f9 | |
parent | 269d32b6c8106a80d5402033aa9946dd68923fe0 (diff) | |
parent | b58adf2fbbe196c6f76f667051f3caf6e4d51c65 (diff) | |
download | mariadb-git-412d284e063471a17d4e445a9c80b9b0d1c40182.tar.gz |
Merge kboortz@bk-internal.mysql.com:/home/bk/mysql-5.1-build
into mysql.com:/home/kent/bk/mysql-5.1-build
mysql-test/mysql-test-run.pl:
Auto merged
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 1 | ||||
-rw-r--r-- | sql/sql_parse.cc | 18 |
2 files changed, 9 insertions, 10 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 966baa72552..6ec55c5f4d6 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -63,7 +63,6 @@ use Getopt::Long; use Sys::Hostname; use IO::Socket; use IO::Socket::INET; -use Data::Dumper; use strict; use warnings; diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 5d7fdcae3f7..9f981fb6bc6 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -3968,6 +3968,7 @@ end_with_restore_list: } case SQLCOM_CREATE_EVENT: case SQLCOM_ALTER_EVENT: + do { DBUG_ASSERT(lex->event_parse_data); if (lex->table_or_sp_used()) @@ -3993,16 +3994,15 @@ end_with_restore_list: if (!res) send_ok(thd); - /* Don't do it, if we are inside a SP */ - if (!thd->spcont) - { - delete lex->sphead; - lex->sphead= NULL; - } - - /* lex->unit.cleanup() is called outside, no need to call it here */ - break; + } while (0); + /* Don't do it, if we are inside a SP */ + if (!thd->spcont) + { + delete lex->sphead; + lex->sphead= NULL; } + /* lex->unit.cleanup() is called outside, no need to call it here */ + break; case SQLCOM_DROP_EVENT: case SQLCOM_SHOW_CREATE_EVENT: { |