1#
2# Bug #46080: group_concat(... order by) crashes server when
3#  sort_buffer_size cannot allocate
4#
5call mtr.add_suppression("Out of memory at line .*, '.*my_alloc.c'");
6call mtr.add_suppression("needed .* byte (.*k)., memory in use: .* bytes (.*k)");
7CREATE TABLE t1(a CHAR(255));
8INSERT INTO t1 VALUES ('a');
9SET @@SESSION.sort_buffer_size=5*16*1000000;
10SET @@SESSION.max_heap_table_size=5*1000000;
11Warnings:
12Warning	1292	Truncated incorrect max_heap_table_size value: '5000000'
13# Must not crash.
14SELECT GROUP_CONCAT(a ORDER BY a) FROM t1 GROUP BY a;
15DROP TABLE t1;
16SET @@SESSION.sort_buffer_size=default;
17SET @@SESSION.max_heap_table_size=default;
18End of 5.0 tests
19