mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-14676 Redundancy in error codes
ER_VERS_NOT_VERSIONED vs ER_VERSIONING_REQUIRED
This commit is contained in:
@@ -117,7 +117,7 @@ select * from t1;
|
||||
|
||||
create or replace table t1 (x int);
|
||||
insert into t1 values (1);
|
||||
--error ER_VERSIONING_REQUIRED
|
||||
--error ER_VERS_NOT_VERSIONED
|
||||
select * from t1 for system_time all;
|
||||
|
||||
create or replace table t1 (x int) with system versioning;
|
||||
|
@@ -115,7 +115,7 @@ select * from t1;
|
||||
|
||||
create or replace table t1 (x int);
|
||||
insert into t1 values (1);
|
||||
--error ER_VERSIONING_REQUIRED
|
||||
--error ER_VERS_NOT_VERSIONED
|
||||
select * from t1 for system_time all;
|
||||
|
||||
create or replace table t1 (x int) with system versioning;
|
||||
|
@@ -1,7 +1,7 @@
|
||||
--source suite/versioning/engines.inc
|
||||
|
||||
create table t (a int);
|
||||
--error ER_VERSIONING_REQUIRED
|
||||
--error ER_VERS_NOT_VERSIONED
|
||||
delete history from t before system_time now();
|
||||
|
||||
# TRUNCATE is not DELETE and trigger must not be called.
|
||||
@@ -47,7 +47,7 @@ create or replace view v as select * from t;
|
||||
delete history from v before system_time now();
|
||||
|
||||
create or replace table t (i int);
|
||||
--error ER_VERSIONING_REQUIRED
|
||||
--error ER_VERS_NOT_VERSIONED
|
||||
delete history from t before system_time now();
|
||||
create or replace view v as select * from t;
|
||||
--error ER_VERS_TRUNCATE_TO_VIEW
|
||||
|
Reference in New Issue
Block a user