1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-22677 UPDATE crashes on partitioned HEAP table WITHOUT OVERLAPS

`ha_heap::clone` was creating a handler by share's handlerton, which is
partition handlerton.

handler's handlerton should be used instead.

Here in particular, HEAP handlerton will be used and it will create ha_heap
handler.
This commit is contained in:
Nikita Malyavin
2020-10-22 01:32:44 +10:00
parent d9e00770a3
commit a79c6e369e
3 changed files with 15 additions and 1 deletions

View File

@@ -335,4 +335,12 @@ insert into t1 values ('2024-12-21','2034-06-29',0),
update t1 set b = 1;
--echo # MDEV-22677 Server crashes in ha_partition::open upon update on
--echo # partitioned HEAP table with WITHOUT OVERLAPS
create or replace table t (id int, s date, e date, period for p(s,e),
primary key(id, p without overlaps)
) engine=heap partition by hash(id);
update t set id = 1;
drop table t, t1;