1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-13715 Server crashes in ha_partition::engine_name

This happened when trying to PARTITION a SEQUENCE table
Problem was that wrong function was used to get engine name

Signed-off-by: Monty <monty@mariadb.org>
This commit is contained in:
Aleksey Midenkov
2017-10-22 12:05:43 +03:00
committed by Monty
parent edfdf0d0a3
commit f64cff9206
3 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,7 @@
#
# MDEV-13715 ha_partition::engine_name() segfault fix
#
create sequence s;
alter table s partition by hash(start_value) partitions 2;
ERROR HY000: Table storage engine 'partition' does not support the create option 'SEQUENCE'
drop sequence s;