1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00

MDEV-14676 Redundancy in error codes

ER_VERS_NOT_VERSIONED vs ER_VERSIONING_REQUIRED
This commit is contained in:
Aleksey Midenkov
2017-12-19 22:05:25 +03:00
parent fc21529f14
commit c5d0c38efc
12 changed files with 36 additions and 38 deletions

View File

@@ -85,7 +85,7 @@ ERROR HY000: Wrong partitions for `t1`: must have at least one HISTORY and exact
alter table t1 add partition (
partition p1 history);
Warnings:
Warning 4115 Maybe missing parameters: no rotation condition for multiple HISTORY partitions.
Warning 4114 Maybe missing parameters: no rotation condition for multiple HISTORY partitions.
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
@@ -229,7 +229,7 @@ x
### warn about partition switching
delete from t1;
Warnings:
Note 4116 Versioned table `test`.`t1`: switching from partition `p0` to `p1`
Note 4115 Versioned table `test`.`t1`: switching from partition `p0` to `p1`
select * from t1 partition (p0);
x
1
@@ -241,7 +241,7 @@ insert into t1 values (4), (5);
### warn about full partition
delete from t1;
Warnings:
Warning 4114 Versioned table `test`.`t1`: partition `p1` is full, add more HISTORY partitions
Warning 4113 Versioned table `test`.`t1`: partition `p1` is full, add more HISTORY partitions
select * from t1 partition (p1) order by x;
x
3
@@ -276,7 +276,7 @@ x
insert into t1 values (4);
delete from t1;
Warnings:
Note 4116 Versioned table `test`.`t1`: switching from partition `p0` to `p1`
Note 4115 Versioned table `test`.`t1`: switching from partition `p0` to `p1`
select * from t1 partition (p1);
x
4
@@ -302,8 +302,8 @@ x
### warn about partition switching and about full partition
delete from t1;
Warnings:
Note 4116 Versioned table `test`.`t1`: switching from partition `p0` to `p1`
Warning 4114 Versioned table `test`.`t1`: partition `p1` is full, add more HISTORY partitions
Note 4115 Versioned table `test`.`t1`: switching from partition `p0` to `p1`
Warning 4113 Versioned table `test`.`t1`: partition `p1` is full, add more HISTORY partitions
select * from t1 partition (p0sp0);
x
1