summaryrefslogtreecommitdiff
path: root/mysql-test/r/explain.result
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2011-11-26 14:23:00 -0800
committerIgor Babaev <igor@askmonty.org>2011-11-26 14:23:00 -0800
commit17b4e4a194ea513f776bab5010d88d24a51b9d9e (patch)
treeffe20f58c4b68af894ebedf30cb3dba679300a66 /mysql-test/r/explain.result
parentd84ea521c539e4f63511f1787df4b4dcb12886d1 (diff)
downloadmariadb-git-17b4e4a194ea513f776bab5010d88d24a51b9d9e.tar.gz
Set new default values for the optimizer switch flags 'derived_merge'
and 'derived_with_keys'. Now they are set on by default.
Diffstat (limited to 'mysql-test/r/explain.result')
-rw-r--r--mysql-test/r/explain.result3
1 files changed, 3 insertions, 0 deletions
diff --git a/mysql-test/r/explain.result b/mysql-test/r/explain.result
index 856e33258c1..2493b04488f 100644
--- a/mysql-test/r/explain.result
+++ b/mysql-test/r/explain.result
@@ -309,6 +309,8 @@ End of 5.1 tests.
CREATE TABLE t1 (a int) ;
CREATE TABLE t2 (a int) ;
INSERT INTO t2 VALUES (8);
+set @tmp_optimizer_switch=@@optimizer_switch;
+set optimizer_switch='derived_merge=off,derived_with_keys=off';
EXPLAIN EXTENDED
SELECT * FROM ( SELECT t1.a FROM t1,t2 WHERE t2.a = t1.a ) AS t;
id select_type table type possible_keys key key_len ref rows filtered Extra
@@ -316,4 +318,5 @@ id select_type table type possible_keys key key_len ref rows filtered Extra
2 DERIVED NULL NULL NULL NULL NULL NULL NULL NULL no matching row in const table
Warnings:
Note 1003 select NULL AS `a` from (select NULL AS `a` from `test`.`t1` join `test`.`t2` where 0) `t`
+set optimizer_switch=@tmp_optimizer_switch;
DROP TABLE t1,t2;