mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 03:17:20 +02:00
MDEV-15103 Assertion in ha_partition::part_records() for updating VIEW
add a test case
This commit is contained in:
parent
62b5427394
commit
f685604aaa
2 changed files with 17 additions and 0 deletions
|
|
@ -534,6 +534,14 @@ i
|
|||
explain partitions select * from t1 for system_time all where row_end = @ts;
|
||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 p1_p1sp0,p1_p1sp1 # NULL NULL NULL NULL # #
|
||||
#
|
||||
# MDEV-15103 Assertion in ha_partition::part_records() for updating VIEW
|
||||
#
|
||||
create or replace table t1 (pk int primary key, f int) with system versioning
|
||||
partition by system_time limit 100 (partition p1 history, partition pn current);
|
||||
insert into t1 values (1,10), (2,20);
|
||||
create or replace view v1 as select * from t1;
|
||||
update v1 set f= 30;
|
||||
# Test cleanup
|
||||
drop database test;
|
||||
create database test;
|
||||
|
|
|
|||
|
|
@ -445,6 +445,15 @@ select * from t1 for system_time all where row_end = @ts;
|
|||
--replace_column 5 # 10 # 11 #
|
||||
explain partitions select * from t1 for system_time all where row_end = @ts;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-15103 Assertion in ha_partition::part_records() for updating VIEW
|
||||
--echo #
|
||||
create or replace table t1 (pk int primary key, f int) with system versioning
|
||||
partition by system_time limit 100 (partition p1 history, partition pn current);
|
||||
insert into t1 values (1,10), (2,20);
|
||||
create or replace view v1 as select * from t1;
|
||||
update v1 set f= 30;
|
||||
|
||||
--echo # Test cleanup
|
||||
drop database test;
|
||||
create database test;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue