2009-07-10 14:00:34 +02:00
|
|
|
--echo #
|
|
|
|
--echo # Bug #46080: group_concat(... order by) crashes server when
|
|
|
|
--echo # sort_buffer_size cannot allocate
|
|
|
|
--echo #
|
|
|
|
|
2009-12-22 10:35:56 +01:00
|
|
|
--source include/have_debug.inc
|
|
|
|
|
2010-02-02 13:17:21 +01:00
|
|
|
call mtr.add_suppression("Out of memory at line .*, '.*my_alloc.c'");
|
|
|
|
call mtr.add_suppression("needed .* byte (.*k)., memory in use: .* bytes (.*k)");
|
2009-09-05 09:40:18 +02:00
|
|
|
|
2009-07-10 14:00:34 +02:00
|
|
|
CREATE TABLE t1(a CHAR(255));
|
|
|
|
INSERT INTO t1 VALUES ('a');
|
|
|
|
|
|
|
|
SET @@SESSION.sort_buffer_size=5*16*1000000;
|
|
|
|
SET @@SESSION.max_heap_table_size=5*1000000;
|
|
|
|
|
2009-07-10 16:03:09 +02:00
|
|
|
--echo # Must not crash.
|
2009-07-13 13:17:14 +02:00
|
|
|
--disable_result_log
|
|
|
|
--error 0,5
|
2009-07-10 14:00:34 +02:00
|
|
|
SELECT GROUP_CONCAT(a ORDER BY a) FROM t1 GROUP BY a;
|
2009-07-13 13:17:14 +02:00
|
|
|
--enable_result_log
|
2009-07-10 14:00:34 +02:00
|
|
|
|
|
|
|
DROP TABLE t1;
|
|
|
|
SET @@SESSION.sort_buffer_size=default;
|
|
|
|
SET @@SESSION.max_heap_table_size=default;
|
|
|
|
|
|
|
|
--echo End of 5.0 tests
|