From 33a4b35ec8199af03eb1b5b64e47c9e940f253b1 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 2 Dec 2004 15:06:15 +0400 Subject: A fix (bug #6878: Crash with engine=memory). heap/hp_create.c: A fix (bug #6878: Crash with engine=memory). Record length should be >= sizeof(byte*). --- mysql-test/t/heap.test | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'mysql-test/t/heap.test') diff --git a/mysql-test/t/heap.test b/mysql-test/t/heap.test index 2eff36f3317..bc0b28370ec 100644 --- a/mysql-test/t/heap.test +++ b/mysql-test/t/heap.test @@ -185,3 +185,13 @@ DELETE FROM t1 WHERE date<1101106546; SELECT * FROM t1; DROP TABLE t1; +# +# Bug #6878: a problem with small length records +# + +create table t1(a char(2)) engine=memory; +insert into t1 values (NULL), (NULL); +delete from t1 where a is null; +insert into t1 values ('2'), ('3'); +select * from t1; +drop table t1; -- cgit v1.2.1