1
0
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:
bell@sanja.is.com.ua
2004-09-17 19:08:46 +03:00
parent d2474ee2e5
commit f11bcefae1
5 changed files with 30 additions and 3 deletions

View File

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