1
0
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:
Sinisa@sinisa.nasamreza.org
2003-05-31 18:31:57 +03:00
parent 8d52377a5c
commit 90b6af3da0
2 changed files with 3 additions and 1 deletions

View File

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