~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/select_in_null.result

Merge Stewart

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
drop table if exists foo;
 
2
Warnings:
 
3
Note    1051    Unknown table 'foo'
 
4
create temporary table foo (
 
5
a int not null auto_increment,
 
6
b int,
 
7
primary key( a )
 
8
) engine=myisam;
 
9
begin;
 
10
insert into foo( b ) values (1),(1),(1),(1),(1);
 
11
create table t2 as select * from foo;
 
12
insert into foo( b ) select b from t2;
 
13
drop table t2;
 
14
create table t2 as select * from foo;
 
15
insert into foo( b ) select b from t2;
 
16
drop table t2;
 
17
create table t2 as select * from foo;
 
18
insert into foo( b ) select b from t2;
 
19
drop table t2;
 
20
create table t2 as select * from foo;
 
21
insert into foo( b ) select b from t2;
 
22
drop table t2;
 
23
create table t2 as select * from foo;
 
24
insert into foo( b ) select b from t2;
 
25
drop table t2;
 
26
commit;
 
27
explain select * from foo where a in (160000, 160001, 160002);
 
28
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
29
1       SIMPLE  foo     range   PRIMARY PRIMARY 4       NULL    3       Using where
 
30
explain select * from foo where a in (null, 160000, 160001, 160002);
 
31
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
32
1       SIMPLE  foo     range   PRIMARY PRIMARY 4       NULL    3       Using where
 
33
DROP TABLE foo;