~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/select_in_null.test

  • Committer: Padraig O'Sullivan
  • Date: 2009-09-13 01:03:01 UTC
  • mto: (1126.9.2 captain-20090915-01)
  • mto: This revision was merged to the branch mainline in revision 1133.
  • Revision ID: osullivan.padraig@gmail.com-20090913010301-tcvvezipx1124acy
Added calls to the dtrace delete begin/end probes.

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
 
begin;
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;
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
 
create table t2 as select * from foo;
27
 
insert into foo( b ) select b from t2;
28
 
drop table t2;
29
 
create table t2 as select * from foo;
30
 
insert into foo( b ) select b from t2;
31
 
drop table t2;
32
 
commit;
33
 
 
34
 
explain select * from foo where a in (160000, 160001, 160002);
35
 
explain select * from foo where a in (null, 160000, 160001, 160002);
36
 
DROP TABLE foo;