mirror of
https://github.com/MariaDB/server.git
synced 2026-05-03 13:45:34 +02:00
Backport of subquery optimizations to 5.3.
There are still test failures because of: - Wrong query results in outer join + semi join - EXPLAIN output differences
This commit is contained in:
parent
1a490f2da4
commit
b83cb52e9e
57 changed files with 30851 additions and 628 deletions
|
|
@ -725,7 +725,11 @@ eliminate_tables_for_list(JOIN *join, List<TABLE_LIST> *join_list,
|
|||
}
|
||||
else
|
||||
{
|
||||
DBUG_ASSERT(!tbl->nested_join);
|
||||
DBUG_ASSERT(!tbl->nested_join || tbl->sj_on_expr);
|
||||
//psergey-todo: is the following really correct or we'll need to descend
|
||||
//down all ON clauses: ?
|
||||
if (tbl->sj_on_expr)
|
||||
tables_used_on_left |= tbl->sj_on_expr->used_tables();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue