mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
MWL#90: Subqueries: Inside-out execution for materialized non-sj subqueries
- Merge with MariaDB 5.3 -main
This commit is contained in:
@@ -7682,6 +7682,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