mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MWL#90: Subqueries: Inside-out execution for non-semijoin materialized
subqueries that are AND-parts of the WHERE - First code (needs cleanup).
This commit is contained in:
@ -7661,6 +7661,17 @@ bool setup_tables(THD *thd, Name_resolution_context *context,
|
||||
if (res)
|
||||
DBUG_RETURN(1);
|
||||
}
|
||||
if (table_list->jtbm_subselect)
|
||||
{
|
||||
Item *item= table_list->jtbm_subselect;
|
||||
if (item->fix_fields(thd, &item))
|
||||
{
|
||||
my_error(ER_TOO_MANY_TABLES,MYF(0),MAX_TABLES);
|
||||
DBUG_RETURN(1);
|
||||
}
|
||||
DBUG_ASSERT(item == table_list->jtbm_subselect);
|
||||
table_list->jtbm_subselect->setup_engine(FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
/* Precompute and store the row types of NATURAL/USING joins. */
|
||||
|
Reference in New Issue
Block a user