1
0
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:
Sergey Petrunya
2010-01-17 17:51:10 +03:00
parent 1a490f2da4
commit b83cb52e9e
57 changed files with 30727 additions and 504 deletions

View File

@@ -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();
}
}