mirror of
https://github.com/MariaDB/server.git
synced 2026-04-27 18:55:31 +02:00
Fixed a valgrind warning when creating stored procedures containing complex
unions (crashed randomly), and made "label" not a reserved word. sql/sql_parse.cc: Fixed valgrind warning for certain complex unions (which sometime caused crash). sql/sql_yacc.yy: The temporary(?) "label" statement should not be a reserved word.
This commit is contained in:
parent
07a1c31a48
commit
5a10f1ac96
2 changed files with 5 additions and 0 deletions
|
|
@ -3584,21 +3584,25 @@ purposes internal to the MySQL server", MYF(0));
|
|||
switch (res) {
|
||||
case SP_OK:
|
||||
send_ok(thd);
|
||||
lex->unit.cleanup();
|
||||
delete lex->sphead;
|
||||
lex->sphead= 0;
|
||||
break;
|
||||
case SP_WRITE_ROW_FAILED:
|
||||
net_printf(thd, ER_SP_ALREADY_EXISTS, SP_TYPE_STRING(lex), name);
|
||||
lex->unit.cleanup();
|
||||
delete lex->sphead;
|
||||
lex->sphead= 0;
|
||||
goto error;
|
||||
case SP_NO_DB_ERROR:
|
||||
net_printf(thd, ER_BAD_DB_ERROR, lex->sphead->m_db.str);
|
||||
lex->unit.cleanup();
|
||||
delete lex->sphead;
|
||||
lex->sphead= 0;
|
||||
goto error;
|
||||
default:
|
||||
net_printf(thd, ER_SP_STORE_FAILED, SP_TYPE_STRING(lex), name);
|
||||
lex->unit.cleanup();
|
||||
delete lex->sphead;
|
||||
lex->sphead= 0;
|
||||
goto error;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue