diff options
author | Alexey Kopytov <Alexey.Kopytov@Sun.com> | 2010-06-11 16:52:06 +0400 |
---|---|---|
committer | Alexey Kopytov <Alexey.Kopytov@Sun.com> | 2010-06-11 16:52:06 +0400 |
commit | 386929d3aee738cd0e3db335fb54e95bba8f9985 (patch) | |
tree | dd79682febb582afa1309c3b04f172d140b20aa6 /sql/sp.cc | |
parent | 0823afc8bf160e03ce722c5e3cef21024b63b99a (diff) | |
parent | c2ebb0ac882feadedd0bbca71277fd2de66aa957 (diff) | |
download | mariadb-git-386929d3aee738cd0e3db335fb54e95bba8f9985.tar.gz |
Manual merge from the bugfix tree.
conflicts:
conflict sql/sql_parse.cc
Diffstat (limited to 'sql/sp.cc')
-rw-r--r-- | sql/sp.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/sp.cc b/sql/sp.cc index e0c1fcfa378..ddddaee2e10 100644 --- a/sql/sp.cc +++ b/sql/sp.cc @@ -782,7 +782,12 @@ db_load_routine(THD *thd, int type, sp_name *name, sp_head **sphp, thd->spcont= NULL; { - Parser_state parser_state(thd, defstr.c_ptr(), defstr.length()); + Parser_state parser_state; + if (parser_state.init(thd, defstr.c_ptr(), defstr.length())) + { + ret= SP_INTERNAL_ERROR; + goto end; + } lex_start(thd); |