~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/null_key.result

  • Committer: lbieber
  • Date: 2010-10-06 16:34:16 UTC
  • mfrom: (1816.1.3 build)
  • Revision ID: lbieber@orisndriz08-20101006163416-ea0sl59qgpglk21y
Merge Monty - Change the requirement from either libinnodb to libhaildb. Also, tied it to version 2.2
Merge Andrew - fix bug 650935: remove --compress from all clients
Merge Andrew - fix bug 653471: Add -A to drizzle client
Merge Travis - 621861 = To change C structs to C++ classes in Drizzle

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
  KEY `b` (`b`)
84
84
) ENGINE=MyISAM COLLATE = utf8_general_ci
85
85
insert into t2 select * from t1;
86
 
alter table t1 modify b blob not null, add c int DEFAULT 42 not null, drop key a, add unique key (a,b(20),c), drop key b, add key (b(10));
 
86
alter table t1 modify b blob not null, add c int not null, drop key a, add unique key (a,b(20),c), drop key b, add key (b(10));
87
87
explain select * from t1 where a is null and b = 2;
88
88
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
89
89
1       SIMPLE  t1      ref     a,b     a       5       const   X       Using where
125
125
1       SIMPLE  t1      range   b       b       12      NULL    X       Using where
126
126
select * from t1 where a is null;
127
127
a       b       c
128
 
NULL    7       42
129
 
NULL    9       42
130
 
NULL    9       42
 
128
NULL    7       0
 
129
NULL    9       0
 
130
NULL    9       0
131
131
select * from t1 where a is null and b = 7 and c=0;
132
132
a       b       c
 
133
NULL    7       0
133
134
select * from t1 where a<=>b limit 2;
134
135
a       b       c
135
 
1       1       42
136
 
2       2       42
 
136
1       1       0
 
137
2       2       0
137
138
select * from t1 where (a is null or a > 0 and a < 3) and b < 5 limit 3;
138
139
a       b       c
139
 
1       1       42
140
 
2       2       42
 
140
1       1       0
 
141
2       2       0
141
142
select * from t1 where (a is null or a > 0 and a < 3) and b > 7 limit 3;
142
143
a       b       c
143
 
NULL    9       42
144
 
NULL    9       42
 
144
NULL    9       0
 
145
NULL    9       0
145
146
select * from t1 where (a is null or a = 7) and b=7 and c=0;
146
147
a       b       c
 
148
7       7       0
 
149
NULL    7       0
147
150
select * from t1 where a is null and b=9 or a is null and b=7 limit 3;
148
151
a       b       c
149
 
NULL    7       42
150
 
NULL    9       42
151
 
NULL    9       42
 
152
NULL    7       0
 
153
NULL    9       0
 
154
NULL    9       0
152
155
select * from t1 where b like "6%";
153
156
a       b       c
154
 
6       6       42
 
157
6       6       0
155
158
drop table t1;
156
159
drop table t2;
157
160
create temporary table t1 (a int, b int not null,unique key (a,b),index(b)) engine=myisam;