mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
A fix (Bug #6843: Wrong function name crashes MySQL if mysql.proc table is missi
This commit is contained in:
parent
6461d209a5
commit
f7fb35c518
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue