mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge 10.4 into 10.5
This commit is contained in:
@ -411,6 +411,14 @@ delete from t1 where a is not null;
|
||||
create or replace table t1 (i int) with system versioning partition by system_time limit 10;
|
||||
--error ER_VERS_QUERY_IN_PARTITION
|
||||
select * from t1 partition (p0) for system_time all;
|
||||
--echo # MDEV-18929 2nd execution of SP does not detect ER_VERS_NOT_VERSIONED
|
||||
create or replace procedure sp()
|
||||
select * from t1 partition (p0) for system_time all;
|
||||
--error ER_VERS_QUERY_IN_PARTITION
|
||||
call sp;
|
||||
--error ER_VERS_QUERY_IN_PARTITION
|
||||
call sp;
|
||||
drop procedure sp;
|
||||
|
||||
--echo # MDEV-15380 Index for versioned table gets corrupt after partitioning and DELETE
|
||||
create or replace table t1 (pk int primary key)
|
||||
@ -501,4 +509,19 @@ update t1 set a= 'bar' limit 4;
|
||||
select * from t1;
|
||||
drop table t1;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-21011 Table corruption reported for versioned partitioned table after DELETE: "Found a misplaced row"
|
||||
--echo #
|
||||
create table t1 (a int) with system versioning
|
||||
partition by system_time limit 3
|
||||
(partition p1 history, partition p2 history, partition pn current);
|
||||
insert into t1 values (1),(2),(3),(4);
|
||||
delete from t1;
|
||||
delete from t1;
|
||||
check table t1;
|
||||
|
||||
# cleanup
|
||||
drop table t1;
|
||||
|
||||
|
||||
--source suite/versioning/common_finish.inc
|
||||
|
Reference in New Issue
Block a user