File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
mysql-test/suite/versioning Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 534
534
explain partitions select * from t1 for system_time all where row_end = @ts;
535
535
id select_type table partitions type possible_keys key key_len ref rows Extra
536
536
1 SIMPLE t1 p1_p1sp0,p1_p1sp1 # NULL NULL NULL NULL # #
537
+ #
538
+ # MDEV-15103 Assertion in ha_partition::part_records() for updating VIEW
539
+ #
540
+ create or replace table t1 (pk int primary key, f int) with system versioning
541
+ partition by system_time limit 100 (partition p1 history, partition pn current);
542
+ insert into t1 values (1,10), (2,20);
543
+ create or replace view v1 as select * from t1;
544
+ update v1 set f= 30;
537
545
# Test cleanup
538
546
drop database test;
539
547
create database test;
Original file line number Diff line number Diff line change @@ -445,6 +445,15 @@ select * from t1 for system_time all where row_end = @ts;
445
445
--replace_column 5 # 10 # 11 #
446
446
explain partitions select * from t1 for system_time all where row_end = @ts;
447
447
448
+ --echo #
449
+ --echo # MDEV-15103 Assertion in ha_partition::part_records() for updating VIEW
450
+ --echo #
451
+ create or replace table t1 (pk int primary key, f int) with system versioning
452
+ partition by system_time limit 100 (partition p1 history, partition pn current);
453
+ insert into t1 values (1,10), (2,20);
454
+ create or replace view v1 as select * from t1;
455
+ update v1 set f= 30;
456
+
448
457
--echo # Test cleanup
449
458
drop database test;
450
459
create database test;
You can’t perform that action at this time.
0 commit comments