mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge branch '10.3' into 10.4
This commit is contained in:
@ -697,6 +697,27 @@ alter table t1 partition by system_time (partition pn current);
|
||||
# Cleanup
|
||||
drop table t1;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-22247 History partition overflow leads to wrong SELECT result
|
||||
--echo #
|
||||
set timestamp= unix_timestamp('2000-01-01 00:00:00');
|
||||
create or replace table t1 (x int) with system versioning
|
||||
partition by system_time interval 1 hour
|
||||
(partition p0 history, partition p1 history, partition pn current);
|
||||
|
||||
insert into t1 values (0);
|
||||
update t1 set x= x + 1;
|
||||
|
||||
set timestamp= unix_timestamp('2000-01-01 02:00:01');
|
||||
update t1 set x= x + 1;
|
||||
|
||||
select *, row_start, row_end from t1 for system_time as of '2000-01-01 02:00:00';
|
||||
--replace_column 10 #
|
||||
explain partitions select * from t1 for system_time as of '2000-01-01 02:00:00';
|
||||
--replace_column 5 # 10 # 11 #
|
||||
explain partitions select * from t1;
|
||||
drop table t1;
|
||||
|
||||
--echo # End of 10.3 tests
|
||||
|
||||
--echo #
|
||||
|
Reference in New Issue
Block a user