mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-14823, MDEV-15956 Versioning error messages fixes
MDEV-14823 Wrong error message upon selecting from a system_time partition MDEV-15956 Strange ER_UNSUPPORTED_ACTION_ON_GENERATED_COLUMN upon ALTER on versioning column
This commit is contained in:
committed by
Sergei Golubchik
parent
ce2cf855bf
commit
b1e75d290e
@@ -449,5 +449,10 @@ create or replace table t (x int) with system versioning;
|
||||
alter table user add system versioning;
|
||||
use test;
|
||||
|
||||
--echo # MDEV-15956 Strange ER_UNSUPPORTED_ACTION_ON_GENERATED_COLUMN upon ALTER on versioning column
|
||||
create or replace table t1 (i int, j int as (i), s timestamp(6) as row start, e timestamp(6) as row end, period for system_time(s,e)) with system versioning;
|
||||
--error ER_VERS_ALTER_SYSTEM_FIELD
|
||||
alter table t1 modify s timestamp(6) as row start;
|
||||
|
||||
drop database test;
|
||||
create database test;
|
||||
|
@@ -425,6 +425,11 @@ update t1 set a = 4;
|
||||
delete from t1;
|
||||
delete from t1 where a is not null;
|
||||
|
||||
--echo # MDEV-14823 Wrong error message upon selecting from a system_time partition
|
||||
create or replace table t1 (i int) with system versioning partition by system_time limit 10 (partition p0 history, partition pn current);
|
||||
--error ER_VERS_QUERY_IN_PARTITION
|
||||
select * from t1 partition (p0) for system_time all;
|
||||
|
||||
--echo # Test cleanup
|
||||
drop database test;
|
||||
create database test;
|
||||
|
Reference in New Issue
Block a user