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,
16
insert into foo( b ) values (1),(1),(1),(1),(1);
17
create table t2 as select * from foo;
18
insert into foo( b ) select b from t2;
20
create table t2 as select * from foo;
21
insert into foo( b ) select b from t2;
23
create table t2 as select * from foo;
24
insert into foo( b ) select b from t2;
26
create table t2 as select * from foo;
27
insert into foo( b ) select b from t2;
29
create table t2 as select * from foo;
30
insert into foo( b ) select b from t2;
34
explain select * from foo where a in (160000, 160001, 160002);
35
explain select * from foo where a in (null, 160000, 160001, 160002);