mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03: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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user