1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-17096 Pushdown of simple derived tables to storage engines

Resolved the problem of forming a proper query string for FEDERATEDX.
Added test cases.

Cleanup of extra spaces.
This commit is contained in:
Igor Babaev
2019-02-09 22:54:26 -08:00
parent 3f9040085a
commit d11be23933
14 changed files with 233 additions and 67 deletions

View File

@ -4044,7 +4044,7 @@ void JOIN::exec_inner()
not the case.
*/
if (exec_const_order_group_cond.elements &&
!(select_options & SELECT_DESCRIBE) &&
!(select_options & SELECT_DESCRIBE) &&
!select_lex->pushdown_select)
{
List_iterator_fast<Item> const_item_it(exec_const_order_group_cond);
@ -4300,7 +4300,7 @@ mysql_select(THD *thd,
DBUG_RETURN(TRUE);
}
}
if ((err= join->optimize()))
{
goto err; // 1
@ -4322,7 +4322,7 @@ mysql_select(THD *thd,
select_lex->where= join->conds_history;
select_lex->having= join->having_history;
}
err:
if (select_lex->pushdown_select)
@ -25885,7 +25885,7 @@ bool mysql_explain_union(THD *thd, SELECT_LEX_UNIT *unit, select_result *result)
res= unit->exec();
}
}
else
else
{
thd->lex->current_select= first;
unit->set_limit(unit->global_parameters());