1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Merge branch '10.11' into 11.0

This commit is contained in:
Oleksandr Byelkin
2023-08-08 21:03:46 +02:00
870 changed files with 11721 additions and 6311 deletions

View File

@@ -3373,6 +3373,32 @@ update t set a = 1;
update t set a = 2 limit 0;
drop table t;
#
# MDEV-31244 Assertion "not SELECT" in vers_set_hist_part()
#
create table t (a int) with system versioning partition by system_time;
create function f() returns int
begin
update t set a = 1;
return 1;
end $
create procedure p() select f();
call p();
f()
1
call p();
f()
1
drop procedure p;
drop function f;
drop table t;
#
# MDEV-29873 MSAN uninitialized value errors in bcmp /
# prep_alter_part_table upon re-partitioning by system time
#
create table t (a int) with system versioning partition by system_time interval 5 week;
alter table t partition by system_time interval 10 week;
drop table t;
#
# MDEV-16546 System versioning setting to allow history modification
#
create table t1 (a varchar(100)) with system versioning
@@ -3392,4 +3418,17 @@ t1 p1 2 SYSTEM_TIME 2021-10-02 00:00:00 2
t1 pn 3 SYSTEM_TIME CURRENT 1
drop table t1;
set system_versioning_insert_history=0;
#
# MDEV-29727 ALTER and CREATE with default partitioning
# differently react to SQL_MODE => unusable SHOW CREATE
#
create table t (a int) with system versioning;
alter table t partition by system_time partitions 3;
ERROR HY000: Maybe missing parameters: no rotation condition for multiple HISTORY partitions.
drop table t;
create table t (a int) with system versioning partition by system_time partitions 3;
ERROR HY000: Maybe missing parameters: no rotation condition for multiple HISTORY partitions.
#
# End of 10.5 tests
#
set global innodb_stats_persistent= @save_persistent;