Commit 58243b00 authored by Igor Babaev's avatar Igor Babaev

Currently innodb_plugin does not support ICP. Part2.

parent c43fe206
...@@ -304,6 +304,8 @@ begin; ...@@ -304,6 +304,8 @@ begin;
# is retreived and processed first. # is retreived and processed first.
# #
# Verify that JT_EQ_REF is used. # Verify that JT_EQ_REF is used.
set @tmp_optimizer_switch=@@optimizer_switch;
set optimizer_switch='index_condition_pushdown=off';
explain explain
select 1 from t1 natural join (select 3 as a, 2 as b union all select 1 from t1 natural join (select 3 as a, 2 as b union all
select 3 as a, 1 as b) as t2 for update; select 3 as a, 1 as b) as t2 for update;
...@@ -326,7 +328,7 @@ key PRIMARY ...@@ -326,7 +328,7 @@ key PRIMARY
key_len 4 key_len 4
ref t2.a ref t2.a
rows 1 rows 1
Extra Using index condition; Using where Extra Using where
id 2 id 2
select_type DERIVED select_type DERIVED
table NULL table NULL
...@@ -357,6 +359,7 @@ key_len NULL ...@@ -357,6 +359,7 @@ key_len NULL
ref NULL ref NULL
rows NULL rows NULL
Extra Extra
set optimizer_switch=@tmp_optimizer_switch;
# Lock the record. # Lock the record.
select 1 from t1 natural join (select 3 as a, 2 as b union all select 1 from t1 natural join (select 3 as a, 2 as b union all
select 3 as a, 1 as b) as t2 for update; select 3 as a, 1 as b) as t2 for update;
......
...@@ -239,9 +239,12 @@ begin; ...@@ -239,9 +239,12 @@ begin;
--echo # --echo #
--echo # Verify that JT_EQ_REF is used. --echo # Verify that JT_EQ_REF is used.
--vertical_results --vertical_results
set @tmp_optimizer_switch=@@optimizer_switch;
set optimizer_switch='index_condition_pushdown=off';
explain explain
select 1 from t1 natural join (select 3 as a, 2 as b union all select 1 from t1 natural join (select 3 as a, 2 as b union all
select 3 as a, 1 as b) as t2 for update; select 3 as a, 1 as b) as t2 for update;
set optimizer_switch=@tmp_optimizer_switch;
--horizontal_results --horizontal_results
--echo # Lock the record. --echo # Lock the record.
select 1 from t1 natural join (select 3 as a, 2 as b union all select 1 from t1 natural join (select 3 as a, 2 as b union all
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment