6
drop table if exists t1, t2, t3;
9
set @read_rnd_buffer_size_save= @@read_rnd_buffer_size;
10
set read_rnd_buffer_size=79;
11
select @@read_rnd_buffer_size;
14
set @@read_rnd_buffer_size= @read_rnd_buffer_size_save;
16
drop table t1, t2, t3, t4;
19
# BUG#30622: Incorrect query results for MRR + filesort
22
ID int NOT NULL AUTO_INCREMENT,
23
col1 int DEFAULT NULL,
24
key1 int NOT NULL DEFAULT '0',
25
key2 int DEFAULT NULL,
28
col2 int DEFAULT '100',
29
col3 enum('headers','bodyandsubject') NOT NULL DEFAULT 'bodyandsubject',
30
col4 int NOT NULL DEFAULT '0',
34
) ENGINE=MyISAM AUTO_INCREMENT=6;
37
(1,NULL,1130,NULL,'Hello',NULL,100,'bodyandsubject',0),
38
(2,NULL,1130,NULL,'bye',NULL,100,'bodyandsubject',0),
39
(3,NULL,1130,NULL,'red',NULL,100,'bodyandsubject',0),
40
(4,NULL,1130,NULL,'yellow',NULL,100,'bodyandsubject',0),
41
(5,NULL,1130,NULL,'blue',NULL,100,'bodyandsubject',0);
43
select * FROM t1 WHERE key1=1130 AND col1 IS NULL ORDER BY text1;