~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/null_key.result

[patch 112/129] Merge patch for revision 1925 from InnoDB SVN:
revno: 1925
revision-id: svn-v4:16c675df-0fcb-4bc9-8058-dcc011a37293:branches/zip:6169
parent: svn-v4:16c675df-0fcb-4bc9-8058-dcc011a37293:branches/zip:6163
committer: calvin
timestamp: Thu 2009-11-12 12:40:43 +0000
message:
  branches/zip: add test case for bug#46676
  
  This crash is reproducible with InnoDB plugin 1.0.4 + MySQL 5.1.37.
  But no longer reproducible after MySQL 5.1.38 (with plugin 1.0.5).
  Add test case to catch future regression.
added:
  mysql-test/innodb_bug46676.result 6169@16c675df-0fcb-4bc9-8058-dcc011a37293:branches%2Fzip%2Fmysql-test%2Finnodb_bug46676.result
  mysql-test/innodb_bug46676.test 6169@16c675df-0fcb-4bc9-8058-dcc011a37293:branches%2Fzip%2Fmysql-test%2Finnodb_bug46676.test
diff:
=== added file 'mysql-test/innodb_bug46676.result'

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;