diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2018-01-26 16:59:53 +0100 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2018-02-01 09:51:47 +0100 |
commit | 80d3eee072025f34984e474ea160651eac9e11e5 (patch) | |
tree | 71339d70b7ff7e338c19543e2939a1d0dde1a982 /sql/sp.cc | |
parent | ad0013c8e2b01acf2128580599aa6d54bf234b2d (diff) | |
download | mariadb-git-80d3eee072025f34984e474ea160651eac9e11e5.tar.gz |
MDEV-14857: problem with 10.2.11 server crashing when executing stored procedure
Counter for select numbering made stored with the statement (before was global)
So now it does have always accurate value which does not depend on
interruption of statement prepare by errors like lack of table in
a view definition.
Diffstat (limited to 'sql/sp.cc')
-rw-r--r-- | sql/sp.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/sp.cc b/sql/sp.cc index 5a64c28865e..2e268e483e7 100644 --- a/sql/sp.cc +++ b/sql/sp.cc @@ -760,7 +760,6 @@ static sp_head *sp_compile(THD *thd, String *defstr, ulonglong sql_mode, else { sp= thd->lex->sphead; - sp->set_select_number(thd->select_number); } thd->pop_internal_handler(); |