1
-- source include/have_debug.inc
4
# Bug #28499: crash for grouping query when tmp_table_size is too small
7
DROP TABLE IF EXISTS t1;
10
a varchar(32) character set utf8 collate utf8_bin NOT NULL,
11
b varchar(32) character set utf8 collate utf8_bin NOT NULL )
12
ENGINE=MyISAM DEFAULT CHARSET=utf8;
15
('AAAAAAAAAA','AAAAAAAAAA'), ('AAAAAAAAAB','AAAAAAAAAB '),
16
('AAAAAAAAAB','AAAAAAAAAB'), ('AAAAAAAAAC','AAAAAAAAAC'),
17
('AAAAAAAAAD','AAAAAAAAAD'), ('AAAAAAAAAE','AAAAAAAAAE'),
18
('AAAAAAAAAF','AAAAAAAAAF'), ('AAAAAAAAAG','AAAAAAAAAG'),
19
('AAAAAAAAAH','AAAAAAAAAH'), ('AAAAAAAAAI','AAAAAAAAAI'),
20
('AAAAAAAAAJ','AAAAAAAAAJ'), ('AAAAAAAAAK','AAAAAAAAAK');
22
set tmp_table_size=1024;
24
--replace_regex /in table '[^']+'/in table 'tmp_table'/
26
SELECT MAX(a) FROM t1 GROUP BY a,b;
28
set tmp_table_size=default;