mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
A post merge fix.
This commit is contained in:
@ -1810,16 +1810,6 @@ Event_job_data::compile(THD *thd, MEM_ROOT *mem_root)
|
||||
{
|
||||
DBUG_PRINT("error", ("error during compile or thd->is_fatal_error: %d",
|
||||
thd->is_fatal_error));
|
||||
/*
|
||||
The first thing we do after parse error is freeing sp_head to
|
||||
ensure that we have restored original memroot.
|
||||
*/
|
||||
if (lex.sphead)
|
||||
{
|
||||
/* Clean up after failed stored procedure/function */
|
||||
delete lex.sphead;
|
||||
lex.sphead= NULL;
|
||||
}
|
||||
lex.unit.cleanup();
|
||||
|
||||
sql_print_error("SCHEDULER: Error during compilation of %s.%s or "
|
||||
|
Reference in New Issue
Block a user