~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/select_in_null.test

Added autoconf tests for location of cstdint and cinttypes. Use those in C++ programs now, so that we don't have to define _STDC_LIMIT_MACROS, etc by hand. Stop, in fact, defining those by hand.

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;