diff options
author | Igor Babaev <igor@askmonty.org> | 2011-12-15 00:21:15 -0800 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2011-12-15 00:21:15 -0800 |
commit | f5dac20f38fcf581b0616562cd2da21fb8c50218 (patch) | |
tree | bfa94f668924256290b553ee80b1380b1066344c /mysql-test/r/explain.result | |
parent | efb57a8ebf798eee816981488c901539ec9fcdad (diff) | |
download | mariadb-git-f5dac20f38fcf581b0616562cd2da21fb8c50218.tar.gz |
Made the optimizer switch flags 'outer_join_with_cache', 'semijoin_with_cache'
set to 'on' by default.
Diffstat (limited to 'mysql-test/r/explain.result')
-rw-r--r-- | mysql-test/r/explain.result | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mysql-test/r/explain.result b/mysql-test/r/explain.result index 2493b04488f..f3d2a567227 100644 --- a/mysql-test/r/explain.result +++ b/mysql-test/r/explain.result @@ -196,6 +196,8 @@ create table t2 (dt datetime not null); insert into t1 values ('2001-01-01 1:1:1', '1:1:1'), ('2001-01-01 1:1:1', '1:1:1'); insert into t2 values ('2001-01-01 1:1:1'), ('2001-01-01 1:1:1'); +SET @save_optimizer_switch=@@optimizer_switch; +SET optimizer_switch='semijoin_with_cache=off'; flush tables; EXPLAIN SELECT OUTR.dt FROM t1 AS OUTR WHERE OUTR.dt IN (SELECT INNR.dt FROM t2 AS INNR WHERE OUTR.dt IS NULL ); id select_type table type possible_keys key key_len ref rows Extra @@ -214,6 +216,7 @@ SELECT OUTR.dt FROM t1 AS OUTR WHERE OUTR.dt IN ( SELECT INNR.dt FROM t2 AS INNR dt 2001-01-01 01:01:01 2001-01-01 01:01:01 +SET optimizer_switch=@save_optimizer_switch; drop tables t1, t2; # # Bug#47669: Query showed by EXPLAIN EXTENDED gives different result from original query |