mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
As far as we cut off derived table branch, we have to close JOINs (BUG#2141)
(test case is absend because it is multi-thread and very big)
This commit is contained in:
parent
5ec1adee44
commit
d358e52b8b
1 changed files with 3 additions and 0 deletions
|
@ -198,7 +198,10 @@ int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit,
|
|||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
unit->exclude_tree();
|
||||
unit->cleanup();
|
||||
}
|
||||
org_table_list->db= (char *)"";
|
||||
// Force read of table stats in the optimizer
|
||||
table->file->info(HA_STATUS_VARIABLE);
|
||||
|
|
Loading…
Reference in a new issue