summaryrefslogtreecommitdiff
path: root/mysql-test/suite/heap/heap.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/suite/heap/heap.test')
-rw-r--r--mysql-test/suite/heap/heap.test16
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/suite/heap/heap.test b/mysql-test/suite/heap/heap.test
index b504661d0ff..b5defdb37af 100644
--- a/mysql-test/suite/heap/heap.test
+++ b/mysql-test/suite/heap/heap.test
@@ -510,6 +510,22 @@ DELETE FROM t1 WHERE ts = 1 AND color = 'GREEN';
SELECT * from t1;
DROP TABLE t1;
+
+#
+# MDEV-5905 Creating tmp. memory table kills the server
+#
+
+CREATE TABLE t1 (id INT);
+INSERT INTO t1 VALUES (1);
+INSERT INTO t1 VALUES (2);
+
+SET @@max_heap_table_size = 1024*1024*1024*20;
+
+CREATE TEMPORARY TABLE tmp ENGINE=MEMORY
+ SELECT id FROM t1;
+DROP TEMPORARY TABLE tmp;
+drop table t1;
+
--echo #
--echo # BUG#11825482: Broken key length calculation for btree index
--echo #