mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02:00
MWL#90: Subqueries: Inside-out execution for non-semijoin materialized
subqueries that are AND-parts of the WHERE - First code (needs cleanup).
This commit is contained in:
parent
cb325eb2b2
commit
2775f80f7d
25 changed files with 964 additions and 444 deletions
|
|
@ -829,8 +829,12 @@ select min(a1) from t1 where 7 in (select b1 from t2);
|
|||
# This is the only correct result of all four queries. This difference is
|
||||
# filed as BUG#40037.
|
||||
set @@optimizer_switch='default,materialization=off';
|
||||
-- echo # with MariaDB and MWL#90, this particular case is solved:
|
||||
explain select min(a1) from t1 where 7 in (select b1 from t2);
|
||||
select min(a1) from t1 where 7 in (select b1 from t2);
|
||||
-- echo # but when we go around MWL#90 code, the problem still shows up:
|
||||
explain select min(a1) from t1 where 7 in (select b1 from t2) or 2> 4;
|
||||
select min(a1) from t1 where 7 in (select b1 from t2) or 2> 4;
|
||||
drop table t1,t2;
|
||||
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue