Commit 9fd4abbc authored by Igor Babaev's avatar Igor Babaev

Currently innodb_plugin does not support ICP.

parent 1a14bdfc
...@@ -97,6 +97,8 @@ insert into t1 values (1,1), (2,null), (3,1), (4,1), ...@@ -97,6 +97,8 @@ insert into t1 values (1,1), (2,null), (3,1), (4,1),
# Demonstrate that for the SELECT statement # Demonstrate that for the SELECT statement
# used later in the test JT_EQ_REF access method is used. # used later in the test JT_EQ_REF access method is used.
# #
set @tmp_optimizer_switch=@@optimizer_switch;
set optimizer_switch='index_condition_pushdown=off';
explain explain
select 1 from t1 natural join (select 2 as a, 1 as b union all select 1 from t1 natural join (select 2 as a, 1 as b union all
select 2 as a, 2 as b) as t2 for update; select 2 as a, 2 as b) as t2 for update;
...@@ -119,7 +121,7 @@ key PRIMARY ...@@ -119,7 +121,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
...@@ -150,6 +152,7 @@ key_len NULL ...@@ -150,6 +152,7 @@ key_len NULL
ref NULL ref NULL
rows NULL rows NULL
Extra Extra
set optimizer_switch=@tmp_optimizer_switch;
# #
# Demonstrate that the reported SELECT statement # Demonstrate that the reported SELECT statement
# no longer produces warnings. # no longer produces warnings.
......
...@@ -140,9 +140,12 @@ insert into t1 values (1,1), (2,null), (3,1), (4,1), ...@@ -140,9 +140,12 @@ insert into t1 values (1,1), (2,null), (3,1), (4,1),
--echo # used later in the test JT_EQ_REF access method is used. --echo # used later in the test JT_EQ_REF access method is used.
--echo # --echo #
--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 2 as a, 1 as b union all select 1 from t1 natural join (select 2 as a, 1 as b union all
select 2 as a, 2 as b) as t2 for update; select 2 as a, 2 as b) as t2 for update;
set optimizer_switch=@tmp_optimizer_switch;
--horizontal_results --horizontal_results
--echo # --echo #
--echo # Demonstrate that the reported SELECT statement --echo # Demonstrate that the reported SELECT statement
......
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