2
# SELECT IN () with NULL in IN changes query plan
4
# http://bugs.mysql.com/bug.php?id=44139
7
drop table if exists foo;
9
create temporary table foo (
10
a int not null auto_increment,
15
insert into foo( b ) values (1),(1),(1),(1),(1);
16
create table t2 as select * from foo;
17
insert into foo( b ) select b from t2;
19
create table t2 as select * from foo;
20
insert into foo( b ) select b from t2;
22
create table t2 as select * from foo;
23
insert into foo( b ) select b from t2;
25
create table t2 as select * from foo;
26
insert into foo( b ) select b from t2;
28
create table t2 as select * from foo;
29
insert into foo( b ) select b from t2;
32
explain select * from foo where a in (160000, 160001, 160002);
33
explain select * from foo where a in (null, 160000, 160001, 160002);