A fix (Bug #6843: Wrong function name crashes MySQL if mysql.proc table is missi

This commit is contained in:
ram@gw.mysql.r18.ru 2004-12-16 16:29:47 +04:00
parent 6461d209a5
commit f7fb35c518

View file

@ -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,