~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/select_in_null.test

  • Committer: Monty Taylor
  • Date: 2008-12-06 22:41:03 UTC
  • mto: (656.1.7 devel)
  • mto: This revision was merged to the branch mainline in revision 665.
  • Revision ID: monty@inaugust.com-20081206224103-jdouqwt9hb0f01y1
Moved non-working tests into broken suite for easier running of working tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# SELECT IN () with NULL in IN changes query plan
3
 
#
4
 
# http://bugs.mysql.com/bug.php?id=44139
5
 
6
 
 
7
 
drop table if exists foo;
8
 
 
9
 
create temporary table foo (
10
 
        a int not null auto_increment,
11
 
        b int,
12
 
        primary key( a )
13
 
) engine=myisam;
14
 
 
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;
18
 
drop table t2;
19
 
create table t2 as select * from foo;
20
 
insert into foo( b ) select b from t2;
21
 
drop table t2;
22
 
create table t2 as select * from foo;
23
 
insert into foo( b ) select b from t2;
24
 
drop table t2;
25
 
create table t2 as select * from foo;
26
 
insert into foo( b ) select b from t2;
27
 
drop table t2;
28
 
create table t2 as select * from foo;
29
 
insert into foo( b ) select b from t2;
30
 
drop table t2;
31
 
 
32
 
explain select * from foo where a in (160000, 160001, 160002);
33
 
explain select * from foo where a in (null, 160000, 160001, 160002);
34
 
DROP TABLE foo;