mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-16490: It's possible to make a system versioned table without any versioning field
* do not allow versioned table to be without versioned (non-system) fields * prohibit changing field versioning, when removing table versioning * handle CREATE...SELECT as well
This commit is contained in:
@@ -515,3 +515,13 @@ row_end datetime(6) generated always as row end,
|
||||
period for system_time(row_start, row_end)
|
||||
) with system versioning;
|
||||
ERROR HY000: `row_start` must be of type TIMESTAMP(6) for system-versioned table `t`
|
||||
# MDEV-16490 It's possible to make a system versioned table without any versioning field
|
||||
create or replace table t1 (x int without system versioning)
|
||||
with system versioning
|
||||
select 1 as y;
|
||||
create or replace table t1 (x int without system versioning)
|
||||
with system versioning
|
||||
select 1 as x;
|
||||
ERROR HY000: Table `t1` must have at least one versioned column
|
||||
drop database test;
|
||||
create database test;
|
||||
|
Reference in New Issue
Block a user