1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

unify error messages a bit

This commit is contained in:
Sergei Golubchik
2018-02-23 12:51:43 +01:00
parent 5282d0dce1
commit 17f8e0ecdf
5 changed files with 36 additions and 12 deletions

View File

@ -65,14 +65,24 @@ create or replace table t (i int) with system versioning;
delete history from t;
create or replace view v as select * from t;
delete history from v;
ERROR HY000: DELETE HISTORY from VIEW is prohibited
ERROR 42S02: 'v' is a view
create or replace table t (i int);
delete history from t;
ERROR HY000: Table `t` is not system-versioned
create or replace view v as select * from t;
delete history from v;
ERROR HY000: DELETE HISTORY from VIEW is prohibited
ERROR 42S02: 'v' is a view
prepare stmt from 'delete history from t';
ERROR HY000: Table `t` is not system-versioned
drop table t;
drop view v;
create or replace table t (i int);
create or replace view v as select * from t;
drop table v;
ERROR 42S02: 'test.v' is a view
lock table v write;
delete history from v before system_time now(6);
ERROR 42S02: 'v' is a view
unlock tables;
drop view v;
drop table t;