From f5dac20f38fcf581b0616562cd2da21fb8c50218 Mon Sep 17 00:00:00 2001 From: Igor Babaev Date: Thu, 15 Dec 2011 00:21:15 -0800 Subject: Made the optimizer switch flags 'outer_join_with_cache', 'semijoin_with_cache' set to 'on' by default. --- mysql-test/t/error_simulation.test | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mysql-test/t/error_simulation.test') diff --git a/mysql-test/t/error_simulation.test b/mysql-test/t/error_simulation.test index 15d172cc7e6..5dcc1fa9dcf 100644 --- a/mysql-test/t/error_simulation.test +++ b/mysql-test/t/error_simulation.test @@ -78,6 +78,9 @@ INSERT INTO t2 VALUES (1, 1, 'data'); --echo # we would need to have thousands of records and/or more columns in both --echo # tables so that the join buffer is filled and re-scans are triggered). +SET @save_optimizer_switch=@@optimizer_switch; +SET optimizer_switch='outer_join_with_cache=off'; + SET SESSION debug = '+d,only_one_Unique_may_be_created'; --replace_column 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 x @@ -87,6 +90,8 @@ SELECT * FROM t1 LEFT JOIN t2 ON ( t2.a < 10 OR t2.b < 10 ); SET SESSION debug = DEFAULT; +SET optimizer_switch=@save_optimizer_switch; + DROP TABLE t1, t2; -- cgit v1.2.1