Debian Codegraph @

mysql-test/suite/parts/t/partition_alter_maria.test

raw
1 #
2 # MDEV-13937 Aria engine: Internal Error 160 after partition handling
3 #
4 source include/have_partition.inc;
5 create table t1 (
6 pk bigint not null auto_increment,
7 dt datetime default null,
8 unique (pk, dt)
9 ) engine=aria row_format=dynamic
10 partition by range columns(dt) (
11 partition `p20171231` values less than ('2017-12-31'),
12 partition `p20181231` values less than ('2018-12-31')
13 );
14 insert into t1 values (1,'2017-09-28 15:12:00');
15 select * from t1;
16 alter table t1 drop partition p20181231;
17 select * from t1;
18 drop table t1;
19
20 #
21 # MDEV-13982 Server crashes in in ha_partition::engine_name
22 #
23 create table t1 (a int) engine=Aria transactional=1 partition by hash(a) partitions 2;
24 show create table t1;
25 drop table t1;
26
27 --let $engine=Aria
28 --source inc/part_alter_values.inc