diff options
author | unknown <ram@gw.mysql.r18.ru> | 2004-12-02 15:06:15 +0400 |
---|---|---|
committer | unknown <ram@gw.mysql.r18.ru> | 2004-12-02 15:06:15 +0400 |
commit | 33a4b35ec8199af03eb1b5b64e47c9e940f253b1 (patch) | |
tree | 0abdb88691a13b1e98fb80390bdf9a8d804f4853 /mysql-test/t/heap.test | |
parent | 38487139569d566d0a51ab59110d37fdac203f86 (diff) | |
download | mariadb-git-33a4b35ec8199af03eb1b5b64e47c9e940f253b1.tar.gz |
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*).
Diffstat (limited to 'mysql-test/t/heap.test')
-rw-r--r-- | mysql-test/t/heap.test | 10 |
1 files changed, 10 insertions, 0 deletions
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; |