diff options
author | Alexey Kopytov <Alexey.Kopytov@Sun.com> | 2010-06-11 17:48:24 +0400 |
---|---|---|
committer | Alexey Kopytov <Alexey.Kopytov@Sun.com> | 2010-06-11 17:48:24 +0400 |
commit | eae3b4fe762965789badce7b2d6aa51b7f0c317a (patch) | |
tree | bad36a3866fc1f57ed09d6de5a590fa2e12bacfe /sql/event_data_objects.cc | |
parent | 6d38a625c158cb56b33d14496f353652d61f0f2d (diff) | |
parent | b497e2c6b2155bfdc4fc63b0f80eba9a5062a02e (diff) | |
download | mariadb-git-eae3b4fe762965789badce7b2d6aa51b7f0c317a.tar.gz |
Manual merge from mysql-5.1-bugteam to mysql-trunk-merge.
conflicts:
conflict mysys/safemalloc.c
conflict sql/mysqld.cc
conflict sql/sp.cc
conflict sql/sql_lex.cc
conflict sql/sql_lex.h
conflict sql/sql_parse.cc
conflict sql/sql_prepare.cc
Diffstat (limited to 'sql/event_data_objects.cc')
-rw-r--r-- | sql/event_data_objects.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/event_data_objects.cc b/sql/event_data_objects.cc index 28fd1e240a2..c778d72a016 100644 --- a/sql/event_data_objects.cc +++ b/sql/event_data_objects.cc @@ -1447,7 +1447,10 @@ Event_job_data::execute(THD *thd, bool drop) thd->set_query(sp_sql.c_ptr_safe(), sp_sql.length()); { - Parser_state parser_state(thd, thd->query(), thd->query_length()); + Parser_state parser_state; + if (parser_state.init(thd, thd->query(), thd->query_length())) + goto end; + lex_start(thd); if (parse_sql(thd, & parser_state, creation_ctx)) |