mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge 10.4 into 10.5
The functional changes of commit 5836191c8f
(MDEV-21168) are omitted due to MDEV-742 having addressed the issue.
This commit is contained in:
@ -130,3 +130,22 @@ alter table t1 add partition (partition p1);
|
||||
--error ER_SAME_NAME_PARTITION
|
||||
alter table t1 add partition (partition p1);
|
||||
drop table t1;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-17091 Assertion `old_part_id == m_last_part' failed in
|
||||
--echo # ha_partition::update_row or `part_id == m_last_part' in
|
||||
--echo # ha_partition::delete_row upon UPDATE/DELETE after dropping versioning
|
||||
--echo #
|
||||
create or replace table t1 (pk int, f int, primary key(pk, f)) engine=innodb
|
||||
partition by key() partitions 2;
|
||||
|
||||
insert into t1 values (1,10),(2,11);
|
||||
--echo # expected to hit same partition
|
||||
select * from t1 partition (p0);
|
||||
|
||||
alter table t1 drop primary key, drop f, add primary key(pk);
|
||||
--echo # 1 and 2 are expected to be in different partitions
|
||||
select * from t1 partition(p0);
|
||||
select * from t1 partition(p1);
|
||||
delete from t1;
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user