mirror of
https://github.com/MariaDB/server.git
synced 2025-11-16 20:23:18 +03:00
A fix (bug #6878: Crash with engine=memory).
heap/hp_open.c: A fix (bug #6878: Crash with engine=memory). Record length should be >= sizeof(byte*).
This commit is contained in:
@@ -161,3 +161,14 @@ CREATE TABLE `job_titles` (
|
||||
SELECT MAX(job_title_id) FROM job_titles;
|
||||
|
||||
DROP TABLE job_titles;
|
||||
|
||||
#
|
||||
# Bug #6878: a problem with small length records
|
||||
#
|
||||
|
||||
create table t1(a char(2)) type=heap;
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user