mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
fixed error handling if creating derived table failed
single row subquery always can return NULL (no rows found) (BUG#5590)
This commit is contained in:
@ -224,7 +224,10 @@ static int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit,
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
free_tmp_table(thd, table);
|
||||
thd->lex->unit.cleanup();
|
||||
}
|
||||
|
||||
exit:
|
||||
delete derived_result;
|
||||
|
Reference in New Issue
Block a user