1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MWL#90: Subqueries: Inside-out execution for non-semijoin materialized subqueries that are AND-parts of the WHERE

- Remove JOIN::all_tables as it is not useful.
- Better wording in comments
This commit is contained in:
Sergey Petrunya
2010-05-25 17:13:19 +04:00
parent 62bf7f6124
commit a15e342d0b
3 changed files with 11 additions and 6 deletions

View File

@@ -2655,9 +2655,11 @@ bool setup_sj_materialization(JOIN_TAB *tab)
then substitute_for_best_equal_field() will change the conditions
according to the join order:
it1
it2 it1.col=it2.col
ot cond(it1.col)
table | attached condition
------+--------------------
it1 |
it2 | it1.col=it2.col
ot | cond(it1.col)
although we've originally had "SELECT it2.col", conditions attached
to subsequent outer tables will refer to it1.col, so SJM-Scan will