Commit 21d0a9fe authored by Sergei Golubchik's avatar Sergei Golubchik

yet another error message fix

parent 79dd77e6
...@@ -42,25 +42,25 @@ create or replace table t1 (x int) ...@@ -42,25 +42,25 @@ create or replace table t1 (x int)
with system versioning with system versioning
partition by system_time ( partition by system_time (
partition p0 as of current_timestamp); partition p0 as of current_timestamp);
ERROR HY000: Wrong partitions consistency for `t1`: must have at least one 'VERSIONING' and exactly one last 'AS OF NOW' ERROR HY000: Wrong partitions consistency for `t1`: must have at least one VERSIONING and exactly one last AS OF CURRENT_TIMESTAMP
create or replace table t1 (x int) create or replace table t1 (x int)
with system versioning with system versioning
partition by system_time ( partition by system_time (
partition p0 as of current_timestamp, partition p0 as of current_timestamp,
partition p1 as of current_timestamp); partition p1 as of current_timestamp);
ERROR HY000: Wrong partitions consistency for `t1`: must have at least one 'VERSIONING' and exactly one last 'AS OF NOW' ERROR HY000: Wrong partitions consistency for `t1`: must have at least one VERSIONING and exactly one last AS OF CURRENT_TIMESTAMP
create or replace table t1 (x int) create or replace table t1 (x int)
with system versioning with system versioning
partition by system_time ( partition by system_time (
partition p0 versioning, partition p0 versioning,
partition p1 versioning); partition p1 versioning);
ERROR HY000: Wrong partitions consistency for `t1`: must have at least one 'VERSIONING' and exactly one last 'AS OF NOW' ERROR HY000: Wrong partitions consistency for `t1`: must have at least one VERSIONING and exactly one last AS OF CURRENT_TIMESTAMP
create or replace table t1 (x int) create or replace table t1 (x int)
with system versioning with system versioning
partition by system_time ( partition by system_time (
partition pn as of current_timestamp, partition pn as of current_timestamp,
partition p0 versioning); partition p0 versioning);
ERROR HY000: Wrong partitions consistency for `t1`: must have at least one 'VERSIONING' and exactly one last 'AS OF NOW' ERROR HY000: Wrong partitions consistency for `t1`: must have at least one VERSIONING and exactly one last AS OF CURRENT_TIMESTAMP
create or replace table t1 (x int) create or replace table t1 (x int)
with system versioning with system versioning
partition by system_time ( partition by system_time (
...@@ -68,7 +68,7 @@ partition p0 versioning, ...@@ -68,7 +68,7 @@ partition p0 versioning,
partition pn as of current_timestamp); partition pn as of current_timestamp);
alter table t1 add partition ( alter table t1 add partition (
partition p1 as of current_timestamp); partition p1 as of current_timestamp);
ERROR HY000: Wrong partitions consistency for `t1`: must have at least one 'VERSIONING' and exactly one last 'AS OF NOW' ERROR HY000: Wrong partitions consistency for `t1`: must have at least one VERSIONING and exactly one last AS OF CURRENT_TIMESTAMP
alter table t1 add partition ( alter table t1 add partition (
partition p1 versioning); partition p1 versioning);
Warnings: Warnings:
...@@ -87,10 +87,10 @@ t1 CREATE TABLE `t1` ( ...@@ -87,10 +87,10 @@ t1 CREATE TABLE `t1` (
PARTITION `pn` AS OF CURRENT_TIMESTAMP ENGINE = ${INNODB_OR_MYISAM}) PARTITION `pn` AS OF CURRENT_TIMESTAMP ENGINE = ${INNODB_OR_MYISAM})
insert into t1 values (1), (2); insert into t1 values (1), (2);
alter table t1 drop partition pn; alter table t1 drop partition pn;
ERROR HY000: Wrong partitions consistency for `t1`: must have at least one 'VERSIONING' and exactly one last 'AS OF NOW' ERROR HY000: Wrong partitions consistency for `t1`: must have at least one VERSIONING and exactly one last AS OF CURRENT_TIMESTAMP
alter table t1 drop partition p1; alter table t1 drop partition p1;
alter table t1 drop partition p0; alter table t1 drop partition p0;
ERROR HY000: Wrong partitions consistency for `t1`: must have at least one 'VERSIONING' and exactly one last 'AS OF NOW' ERROR HY000: Wrong partitions consistency for `t1`: must have at least one VERSIONING and exactly one last AS OF CURRENT_TIMESTAMP
select x from t1; select x from t1;
x x
1 1
...@@ -209,7 +209,7 @@ x ...@@ -209,7 +209,7 @@ x
2 2
delete from t1; delete from t1;
Warnings: Warnings:
Note 4116 Switching from partition `p0` to `p1` Note 4116 Versioned table `test`.`t1`: switching from partition `p0` to `p1`
select * from t1 partition (p0) for system_time all; select * from t1 partition (p0) for system_time all;
x x
1 1
...@@ -219,7 +219,7 @@ x ...@@ -219,7 +219,7 @@ x
insert into t1 values (3); insert into t1 values (3);
delete from t1; delete from t1;
Warnings: Warnings:
Warning 4114 Using full partition `p1`, need more VERSIONING partitions! Warning 4114 Versioned table `test`.`t1`: partition `p1` is full, add more VERSIONING partitions
select * from t1 partition (p1) for system_time all; select * from t1 partition (p1) for system_time all;
x x
2 2
...@@ -252,7 +252,7 @@ x ...@@ -252,7 +252,7 @@ x
insert into t1 values (4); insert into t1 values (4);
delete from t1; delete from t1;
Warnings: Warnings:
Note 4116 Switching from partition `p0` to `p1` Note 4116 Versioned table `test`.`t1`: switching from partition `p0` to `p1`
select * from t1 partition (p1) for system_time all; select * from t1 partition (p1) for system_time all;
x x
4 4
...@@ -274,8 +274,8 @@ x ...@@ -274,8 +274,8 @@ x
2 2
delete from t1; delete from t1;
Warnings: Warnings:
Note 4116 Switching from partition `p0` to `p1` Note 4116 Versioned table `test`.`t1`: switching from partition `p0` to `p1`
Warning 4114 Using full partition `p1`, need more VERSIONING partitions! Warning 4114 Versioned table `test`.`t1`: partition `p1` is full, add more VERSIONING partitions
select * from t1 partition (p0sp0) for system_time all; select * from t1 partition (p0sp0) for system_time all;
x x
1 1
......
...@@ -898,6 +898,7 @@ partition_info::vers_part_rotate(THD * thd) ...@@ -898,6 +898,7 @@ partition_info::vers_part_rotate(THD * thd)
Sql_condition::WARN_LEVEL_WARN, Sql_condition::WARN_LEVEL_WARN,
WARN_VERS_PART_FULL, WARN_VERS_PART_FULL,
ER_THD(thd, WARN_VERS_PART_FULL), ER_THD(thd, WARN_VERS_PART_FULL),
table->s->db.str, table->s->table_name.str,
vers_info->hist_part->partition_name); vers_info->hist_part->partition_name);
return vers_info->hist_part; return vers_info->hist_part;
} }
...@@ -910,6 +911,7 @@ partition_info::vers_part_rotate(THD * thd) ...@@ -910,6 +911,7 @@ partition_info::vers_part_rotate(THD * thd)
Sql_condition::WARN_LEVEL_NOTE, Sql_condition::WARN_LEVEL_NOTE,
WARN_VERS_PART_ROTATION, WARN_VERS_PART_ROTATION,
ER_THD(thd, WARN_VERS_PART_ROTATION), ER_THD(thd, WARN_VERS_PART_ROTATION),
table->s->db.str, table->s->table_name.str,
old_part_name, old_part_name,
vers_info->hist_part->partition_name); vers_info->hist_part->partition_name);
......
...@@ -7837,13 +7837,13 @@ ER_PARTITION_WRONG_TYPE ...@@ -7837,13 +7837,13 @@ ER_PARTITION_WRONG_TYPE
eng "Wrong partition type, expected type: %`s" eng "Wrong partition type, expected type: %`s"
WARN_VERS_PART_FULL WARN_VERS_PART_FULL
eng "Using full partition %`s, need more VERSIONING partitions!" eng "Versioned table %`s.%`s: partition %`s is full, add more VERSIONING partitions"
WARN_VERS_PARAMETERS WARN_VERS_PARAMETERS
eng "Maybe missing parameters: %s" eng "Maybe missing parameters: %s"
WARN_VERS_PART_ROTATION WARN_VERS_PART_ROTATION
eng "Switching from partition %`s to %`s" eng "Versioned table %`s.%`s: switching from partition %`s to %`s"
WARN_VERS_TRX_MISSING WARN_VERS_TRX_MISSING
eng "VTQ missing transaction ID %lu" eng "VTQ missing transaction ID %lu"
...@@ -7897,7 +7897,7 @@ ER_PART_WRONG_VALUE ...@@ -7897,7 +7897,7 @@ ER_PART_WRONG_VALUE
eng "Wrong parameters for partitioned %`s: wrong value for '%s'" eng "Wrong parameters for partitioned %`s: wrong value for '%s'"
ER_VERS_WRONG_PARTS ER_VERS_WRONG_PARTS
eng "Wrong partitions consistency for %`s: must have at least one 'VERSIONING' and exactly one last 'AS OF NOW'" eng "Wrong partitions consistency for %`s: must have at least one VERSIONING and exactly one last AS OF CURRENT_TIMESTAMP"
ER_VERS_HISTORY_LOCK ER_VERS_HISTORY_LOCK
eng "Versioned SELECT write-locking of history rows" eng "Versioned SELECT write-locking of history rows"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment