mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Tests: ER_VERS_DUPLICATE_ROW_START_END check
This commit is contained in:
committed by
Eugene Kosov
parent
759843ae60
commit
1a06a48230
@ -353,6 +353,14 @@ Sys_end timestamp(6) as row end invisible,
|
|||||||
period for system_time (Sys_start, Sys_end)
|
period for system_time (Sys_start, Sys_end)
|
||||||
) with system versioning;
|
) with system versioning;
|
||||||
ERROR HY000: Duplicate ROW START column `Sys_start`
|
ERROR HY000: Duplicate ROW START column `Sys_start`
|
||||||
|
create or replace table t1 (
|
||||||
|
x29 int unsigned,
|
||||||
|
Sys_end0 timestamp(6) as row end invisible,
|
||||||
|
Sys_start timestamp(6) as row start invisible,
|
||||||
|
Sys_end timestamp(6) as row end invisible,
|
||||||
|
period for system_time (Sys_start, Sys_end)
|
||||||
|
) with system versioning;
|
||||||
|
ERROR HY000: Duplicate ROW END column `Sys_end`
|
||||||
## System fields detection
|
## System fields detection
|
||||||
create or replace table t1 (x30 int) with system versioning;
|
create or replace table t1 (x30 int) with system versioning;
|
||||||
create or replace table t2 (
|
create or replace table t2 (
|
||||||
|
@ -325,6 +325,15 @@ create or replace table t1 (
|
|||||||
period for system_time (Sys_start, Sys_end)
|
period for system_time (Sys_start, Sys_end)
|
||||||
) with system versioning;
|
) with system versioning;
|
||||||
|
|
||||||
|
--error ER_VERS_DUPLICATE_ROW_START_END
|
||||||
|
create or replace table t1 (
|
||||||
|
x29 int unsigned,
|
||||||
|
Sys_end0 timestamp(6) as row end invisible,
|
||||||
|
Sys_start timestamp(6) as row start invisible,
|
||||||
|
Sys_end timestamp(6) as row end invisible,
|
||||||
|
period for system_time (Sys_start, Sys_end)
|
||||||
|
) with system versioning;
|
||||||
|
|
||||||
--echo ## System fields detection
|
--echo ## System fields detection
|
||||||
create or replace table t1 (x30 int) with system versioning;
|
create or replace table t1 (x30 int) with system versioning;
|
||||||
--replace_result $default_engine DEFAULT_ENGINE $sys_datatype SYS_DATATYPE
|
--replace_result $default_engine DEFAULT_ENGINE $sys_datatype SYS_DATATYPE
|
||||||
|
Reference in New Issue
Block a user