mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
Merge branch '10.3' into 10.4
This commit is contained in:
@@ -559,6 +559,18 @@ t1 CREATE TABLE `t1` (
|
||||
(PARTITION `ver_p1` HISTORY ENGINE = DEFAULT_ENGINE,
|
||||
PARTITION `ver_pn` CURRENT ENGINE = DEFAULT_ENGINE)
|
||||
#
|
||||
# MDEV-18794 Assertion `!m_innodb' failed in ha_partition::cmp_ref upon SELECT from partitioned table
|
||||
#
|
||||
create or replace table t1 (pk int auto_increment, i int, c char(1), primary key (pk), key(i))
|
||||
engine=innodb with system versioning partition by key() partitions 2;
|
||||
insert into t1 (i, c) values (1, 'a'), (2, 'b'), (null, 'c'), (null, 'b');
|
||||
alter table t1 drop system versioning;
|
||||
replace into t1 select * from t1;
|
||||
select * from t1 where i > 0 or pk = 1000 limit 1;
|
||||
pk i c
|
||||
1 1 a
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-19175 Server crashes in ha_partition::vers_can_native upon INSERT DELAYED into versioned partitioned table
|
||||
#
|
||||
create or replace table t1 (f int) with system versioning partition by hash(f);
|
||||
@@ -763,6 +775,38 @@ alter table t1 add x serial;
|
||||
alter table t1 add partition (partition p1 history);
|
||||
alter table t1 add partition (partition p2 history);
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-27217 DELETE partition selection doesn't work for history partitions
|
||||
#
|
||||
create table t1 (f char) with system versioning
|
||||
partition by system_time limit 10 (
|
||||
partition p0 history,
|
||||
partition p1 history,
|
||||
partition p2 history,
|
||||
partition pn current);
|
||||
delete from t1 partition (p1);
|
||||
ERROR HY000: Not allowed for system-versioned table `test`.`t1`
|
||||
delete from t1 partition (p0, pn);
|
||||
ERROR HY000: Not allowed for system-versioned table `test`.`t1`
|
||||
delete from t1 partition (p0, p1);
|
||||
ERROR HY000: Not allowed for system-versioned table `test`.`t1`
|
||||
delete from t1 partition (p0, p1, pn);
|
||||
ERROR HY000: Not allowed for system-versioned table `test`.`t1`
|
||||
drop table t1;
|
||||
set timestamp=unix_timestamp('2000-01-01 00:00:00');
|
||||
create or replace table t1 (i int) with system versioning
|
||||
partition by system_time interval 1 day (
|
||||
partition p0 history,
|
||||
partition p1 history,
|
||||
partition pn current);
|
||||
set timestamp=unix_timestamp('2000-01-02 00:00:00');
|
||||
insert t1 values (1);
|
||||
delete from t1 partition (p0, pn);
|
||||
ERROR HY000: Not allowed for system-versioned table `test`.`t1`
|
||||
delete from t1 partition (p0, p1, pn);
|
||||
ERROR HY000: Not allowed for system-versioned table `test`.`t1`
|
||||
drop table t1;
|
||||
set timestamp= default;
|
||||
# End of 10.3 tests
|
||||
#
|
||||
# MDEV-22283 Server crashes in key_copy or unexpected error 156: The table already existed in the storage engine
|
||||
|
Reference in New Issue
Block a user