mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
merge
This commit is contained in:
@ -122,6 +122,16 @@ int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit,
|
||||
res= -1;
|
||||
goto exit;
|
||||
}
|
||||
|
||||
/*
|
||||
This is done in order to redo all field optimisations when any of the
|
||||
involved tables is used in the outer query
|
||||
*/
|
||||
if (tables)
|
||||
{
|
||||
for (TABLE_LIST *cursor= tables; cursor; cursor= cursor->next)
|
||||
cursor->table->clear_query_id= 1;
|
||||
}
|
||||
|
||||
item_list= select_cursor->item_list;
|
||||
select_cursor->with_wild= 0;
|
||||
|
Reference in New Issue
Block a user