diff options
author | ram@gw.mysql.r18.ru <> | 2004-12-16 16:29:47 +0400 |
---|---|---|
committer | ram@gw.mysql.r18.ru <> | 2004-12-16 16:29:47 +0400 |
commit | f7fb35c518f6872315449dc0dcdd2480a0e1d548 (patch) | |
tree | ef9517eb9151229566b12fe3fa8715a52b4b1f8e /sql/sp.cc | |
parent | 6461d209a56a09df664f8bfa3cfe6b804fd5594b (diff) | |
download | mariadb-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.cc | 1 |
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, |