mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fix for the optimiser problem caused by the fact that with derived
tables one (or more tables) is opened / closed twice.
This commit is contained in:
@ -219,6 +219,8 @@ int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit,
|
||||
/* Add new temporary table to list of open derived tables */
|
||||
table->next= thd->derived_tables;
|
||||
thd->derived_tables= table;
|
||||
thd->query_id++;
|
||||
query_id++;
|
||||
}
|
||||
|
||||
exit:
|
||||
|
Reference in New Issue
Block a user