mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-22155 ALTER add default history partitions name clash on non-default partitions
If any of default names clashes with existing names find next large enough name gap for the requested number of partitions.
This commit is contained in:
@@ -904,4 +904,20 @@ show create table t1;
|
||||
|
||||
drop tables t1;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-22155 ALTER add default history partitions name clash on non-default partitions
|
||||
--echo #
|
||||
create or replace table t1 (x int) with system versioning
|
||||
partition by system_time limit 1
|
||||
(partition p2 history, partition p8 history, partition pn current);
|
||||
alter table t1 add partition partitions 1;
|
||||
alter table t1 add partition partitions 2;
|
||||
--replace_result $default_engine DEFAULT_ENGINE
|
||||
show create table t1;
|
||||
alter table t1 add partition partitions 8;
|
||||
--replace_result $default_engine DEFAULT_ENGINE
|
||||
show create table t1;
|
||||
|
||||
drop tables t1;
|
||||
|
||||
--source suite/versioning/common_finish.inc
|
||||
|
Reference in New Issue
Block a user