1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

fixed error handling if creating derived table failed

single row subquery always can return NULL (no rows found) (BUG#5590)


mysql-test/r/subselect.result:
  maybe_null flag returning by subquwery for temporary table creation
mysql-test/t/subselect.test:
  maybe_null flag returning by subquwery for temporary table creation
sql/item.cc:
  storing maybe_null in type holder
sql/item_subselect.cc:
  single row subquery always can return NULL (no rows found)
sql/sql_derived.cc:
  fixed error handling if creating derived table failed
This commit is contained in:
unknown
2004-09-17 19:08:46 +03:00
parent f177c76fb2
commit 580f12cc04
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;