summaryrefslogtreecommitdiff
path: root/sql/sp.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2017-09-07 12:30:56 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2017-09-07 12:30:56 +0300
commitae02407ce3a8fa17949383f9156101c9b464d586 (patch)
treea3f63df2a3186832faca5f470f4033d8099e9666 /sql/sp.cc
parent8c0d873b76d2fe9651c1da8084b5ace0ff04b419 (diff)
parenta82ed92a6a721f45f23e210c132d5b33d3dccd21 (diff)
downloadmariadb-git-ae02407ce3a8fa17949383f9156101c9b464d586.tar.gz
Merge bb-10.2-ext into 10.3
Diffstat (limited to 'sql/sp.cc')
-rw-r--r--sql/sp.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sp.cc b/sql/sp.cc
index bc7da657462..8f4acd40f10 100644
--- a/sql/sp.cc
+++ b/sql/sp.cc
@@ -807,6 +807,7 @@ static sp_head *sp_compile(THD *thd, String *defstr, sql_mode_t sql_mode,
else
{
sp= thd->lex->sphead;
+ sp->set_select_number(thd->select_number);
}
thd->pop_internal_handler();