mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
b036b6b594
Partition wasn't setting HA_OPTION_PACK_RECORD on ALTER TABLE if the row format was PAGE. (so one bit in the null bitmap was reserved for a deleted bit - see make_empty_rec - and all actual null bits were one off)
18 lines
471 B
Text
18 lines
471 B
Text
create table t1 (
|
|
pk bigint not null auto_increment,
|
|
dt datetime default null,
|
|
unique (pk, dt)
|
|
) engine=aria row_format=dynamic
|
|
partition by range columns(dt) (
|
|
partition `p20171231` values less than ('2017-12-31'),
|
|
partition `p20181231` values less than ('2018-12-31')
|
|
);
|
|
insert into t1 values (1,'2017-09-28 15:12:00');
|
|
select * from t1;
|
|
pk dt
|
|
1 2017-09-28 15:12:00
|
|
alter table t1 drop partition p20181231;
|
|
select * from t1;
|
|
pk dt
|
|
1 2017-09-28 15:12:00
|
|
drop table t1;
|