From b4b7d941fea8b17bd0db2d30a74df6596101b4ed Mon Sep 17 00:00:00 2001 From: Igor Babaev Date: Tue, 15 Nov 2011 13:03:00 -0800 Subject: Fixed LP bug #889750. If the optimizer switch 'semijoin_with_cache' is set to 'off' then join cache cannot be used to join inner tables of a semijoin. Also fixed a bug in the function check_join_cache_usage() that led to wrong output of the EXPLAIN commands for some test cases. --- mysql-test/r/subselect4.result | 1 + 1 file changed, 1 insertion(+) (limited to 'mysql-test/r/subselect4.result') diff --git a/mysql-test/r/subselect4.result b/mysql-test/r/subselect4.result index ddf339ba1b5..0e5adde7178 100644 --- a/mysql-test/r/subselect4.result +++ b/mysql-test/r/subselect4.result @@ -1,6 +1,7 @@ drop table if exists t1,t2,t3,t4,t5,t6; set @subselect4_tmp= @@optimizer_switch; set optimizer_switch='semijoin=on,firstmatch=on,loosescan=on'; +set optimizer_switch='semijoin_with_cache=on'; set optimizer_switch='mrr=on,mrr_sort_keys=on,index_condition_pushdown=on'; # # Bug #46791: Assertion failed:(table->key_read==0),function unknown -- cgit v1.2.1