summaryrefslogtreecommitdiff
path: root/sql/sp.cc
diff options
context:
space:
mode:
authorram@gw.mysql.r18.ru <>2004-12-16 16:29:47 +0400
committerram@gw.mysql.r18.ru <>2004-12-16 16:29:47 +0400
commitf7fb35c518f6872315449dc0dcdd2480a0e1d548 (patch)
treeef9517eb9151229566b12fe3fa8715a52b4b1f8e /sql/sp.cc
parent6461d209a56a09df664f8bfa3cfe6b804fd5594b (diff)
downloadmariadb-git-f7fb35c518f6872315449dc0dcdd2480a0e1d548.tar.gz
A fix (Bug #6843: Wrong function name crashes MySQL if mysql.proc table is missi
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 9eff1655711..4605d49f3ab 100644
--- a/sql/sp.cc
+++ b/sql/sp.cc
@@ -981,6 +981,7 @@ sp_cache_functions(THD *thd, LEX *lex)
thd->lex= newlex;
newlex->proc_table= oldlex->proc_table; // hint if mysql.oper is opened
+ newlex->current_select= NULL;
name.m_name.str= strchr(name.m_qname.str, '.');
name.m_db.length= name.m_name.str - name.m_qname.str;
name.m_db.str= strmake_root(thd->mem_root,