summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <kostja@bodhi.local>2006-11-28 21:58:08 +0300
committerunknown <kostja@bodhi.local>2006-11-28 21:58:08 +0300
commitfe99bda872fd51b07e1ebb0dc506e26d195edec7 (patch)
tree32067f74b3f9252a30e0bfe08f219623a61ef620 /sql
parent76b4ccbdf8d4913993eb64ef08986654ac5f0423 (diff)
parent76833ac489e01efa336fc12b2e565dc1d3ad3fd8 (diff)
downloadmariadb-git-fe99bda872fd51b07e1ebb0dc506e26d195edec7.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-5.1
into bodhi.local:/opt/local/work/mysql-5.1-24486 sql/sql_parse.cc: Auto merged
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_parse.cc18
1 files changed, 9 insertions, 9 deletions
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:
{