1
0
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:
Sergey Petrunya
2010-04-06 00:16:45 +04:00
parent cb325eb2b2
commit 2775f80f7d
25 changed files with 964 additions and 444 deletions

View File

@ -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. */