Skip to content

Commit 82379ce

Browse files
committed
SQL: error messages revised
1 parent b55a149 commit 82379ce

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

mysql-test/suite/versioning/r/alter.result

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ t CREATE TABLE `t` (
1010
`a` int(11) DEFAULT NULL
1111
) ENGINE=MyISAM DEFAULT CHARSET=latin1
1212
alter table t drop system versioning;
13-
ERROR HY000: Table `t` is not temporal
13+
ERROR HY000: Table `t` is not system-versioned
1414
alter table t add system versioning;
1515
show create table t;
1616
Table Create Table
@@ -21,9 +21,9 @@ t CREATE TABLE `t` (
2121
PERIOD FOR SYSTEM_TIME (`sys_trx_start`, `sys_trx_end`)
2222
) ENGINE=MyISAM DEFAULT CHARSET=latin1 WITH SYSTEM VERSIONING
2323
alter table t add column y int;
24-
ERROR HY000: Not allowed for temporal `test`.`t`. Change @@system_versioning_alter_history to proceed with ALTER.
24+
ERROR HY000: Not allowed for system-versioned `test`.`t`. Change @@system_versioning_alter_history to proceed with ALTER.
2525
alter table t engine innodb;
26-
ERROR HY000: Not allowed for temporal `test`.`t`. Change to/from native system versioning engine is prohibited.
26+
ERROR HY000: Not allowed for system-versioned `test`.`t`. Change to/from native system versioning engine is prohibited.
2727
alter table t drop system versioning;
2828
show create table t;
2929
Table Create Table
@@ -36,13 +36,13 @@ add column trx_start bigint(20) unsigned generated always as row start,
3636
add column trx_end bigint(20) unsigned generated always as row end,
3737
add period for system_time(trx_start, trx_end),
3838
add system versioning;
39-
ERROR HY000: `trx_start` must be of type TIMESTAMP(6) for temporal table `t`
39+
ERROR HY000: `trx_start` must be of type TIMESTAMP(6) for system-versioned table `t`
4040
alter table t
4141
add column trx_start timestamp generated always as row start,
4242
add column trx_end timestamp generated always as row end,
4343
add period for system_time(trx_start, trx_end),
4444
add system versioning;
45-
ERROR HY000: `trx_start` must be of type TIMESTAMP(6) for temporal table `t`
45+
ERROR HY000: `trx_start` must be of type TIMESTAMP(6) for system-versioned table `t`
4646
alter table t
4747
add column trx_start timestamp(6) not null generated always as row start,
4848
add column trx_end timestamp(6) not null generated always as row end,
@@ -231,9 +231,9 @@ t CREATE TABLE `t` (
231231
`b` int(11) DEFAULT NULL
232232
) ENGINE=MyISAM DEFAULT CHARSET=latin1
233233
alter table t modify a int with system versioning;
234-
ERROR HY000: Table `t` is not temporal
234+
ERROR HY000: Table `t` is not system-versioned
235235
alter table t modify a int without system versioning;
236-
ERROR HY000: Table `t` is not temporal
236+
ERROR HY000: Table `t` is not system-versioned
237237
alter table t add system versioning;
238238
alter table t modify a int without system versioning;
239239
show create table t;
@@ -464,9 +464,9 @@ set system_versioning_alter_history= DROP;
464464
ERROR 42000: Variable 'system_versioning_alter_history' can't be set to the value of 'DROP'
465465
create or replace table t (a int) with system versioning;
466466
alter table t add system versioning;
467-
ERROR HY000: Table `t` is already temporal
467+
ERROR HY000: Table `t` is already system-versioned
468468
alter table t add system versioning, drop system versioning;
469-
ERROR HY000: Table `t` is already temporal
469+
ERROR HY000: Table `t` is already system-versioned
470470
set @@system_versioning_alter_history=keep;
471471
create or replace table t(x int, y int) with system versioning engine=innodb;
472472
alter table t modify y int without system versioning;

mysql-test/suite/versioning/r/create.result

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@ Sys_start bigint generated always as row start,
9999
Sys_end bigint unsigned generated always as row end,
100100
period for system_time (Sys_start, Sys_end)
101101
) with system versioning engine innodb;
102-
ERROR HY000: `Sys_start` must be of type TIMESTAMP(6) for temporal table `t1`
102+
ERROR HY000: `Sys_start` must be of type TIMESTAMP(6) for system-versioned table `t1`
103103
create or replace table t1 (
104104
x14 int unsigned,
105105
Sys_start bigint unsigned generated always as row start,
106106
Sys_end bigint generated always as row end,
107107
period for system_time (Sys_start, Sys_end)
108108
) with system versioning engine innodb;
109-
ERROR HY000: `Sys_end` must be of type BIGINT(20) UNSIGNED for temporal table `t1`
109+
ERROR HY000: `Sys_end` must be of type BIGINT(20) UNSIGNED for system-versioned table `t1`
110110
create or replace table t1 (
111111
x15 int with system versioning,
112112
B int
@@ -182,7 +182,7 @@ x21 int without system versioning
182182
create or replace table t1 (
183183
x22 int without system versioning
184184
) with system versioning;
185-
ERROR HY000: Table `t1` must have at least 1 temporal column
185+
ERROR HY000: Table `t1` must have at least one temporal column
186186
create or replace table t1 (a int) with system versioning;
187187
create table tt1 like t1;
188188
show create table tt1;
@@ -363,7 +363,7 @@ period for system_time (st, en)
363363
) with system versioning engine innodb;
364364
create or replace table t2 with system versioning engine myisam
365365
as select * from t1;
366-
ERROR HY000: `st` must be of type TIMESTAMP(6) for temporal table `t2`
366+
ERROR HY000: `st` must be of type TIMESTAMP(6) for system-versioned table `t2`
367367
create or replace table t1 (x27 int, id int) with system versioning engine NON_DEFAULT_ENGINE;
368368
create or replace table t2 (b int, id int);
369369
create or replace table t3 with system versioning

mysql-test/suite/versioning/r/partition.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ x
3131
# Engine change native <-> non-native versioning prohibited
3232
create or replace table t1 (i int) engine=DEFAULT_ENGINE with system versioning partition by hash(i);
3333
alter table t1 engine=NON_DEFAULT_ENGINE;
34-
ERROR HY000: Not allowed for temporal `test`.`t1`. Change to/from native system versioning engine is prohibited.
34+
ERROR HY000: Not allowed for system-versioned `test`.`t1`. Change to/from native system versioning engine is prohibited.
3535
# Check server-level partitioning
3636
## create errors
3737
create or replace table t1 (x int)

sql/share/errmsg-utf8.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7822,7 +7822,7 @@ ER_UPDATE_INFO_WITH_SYSTEM_VERSIONING
78227822
eng "Rows matched: %ld Changed: %ld Inserted: %ld Warnings: %ld"
78237823

78247824
ER_VERS_FIELD_WRONG_TYPE
7825-
eng "%`s must be of type %s for temporal table %`s"
7825+
eng "%`s must be of type %s for system-versioned table %`s"
78267826

78277827
ER_VERS_ENGINE_UNSUPPORTED
78287828
eng "Transaction system versioning for %`s is not supported"
@@ -7852,10 +7852,10 @@ WARN_VERS_PART_NON_HISTORICAL
78527852
eng "Partition %`s contains non-historical data"
78537853

78547854
ER_VERS_ALTER_NOT_ALLOWED
7855-
eng "Not allowed for temporal %`s.%`s. Change @@system_versioning_alter_history to proceed with ALTER."
7855+
eng "Not allowed for system-versioned %`s.%`s. Change @@system_versioning_alter_history to proceed with ALTER."
78567856

78577857
ER_VERS_ALTER_ENGINE_PROHIBITED
7858-
eng "Not allowed for temporal %`s.%`s. Change to/from native system versioning engine is prohibited."
7858+
eng "Not allowed for system-versioned %`s.%`s. Change to/from native system versioning engine is prohibited."
78597859

78607860
ER_VERS_RANGE_PROHIBITED
78617861
eng "SYSTEM_TIME range selector is prohibited"
@@ -7882,10 +7882,10 @@ ER_VERS_DIFFERENT_TABLES
78827882
eng "Wrong parameters for %`s: system fields selected from different tables"
78837883

78847884
ER_VERS_TABLE_MUST_HAVE_COLUMNS
7885-
eng "Table %`s must have at least 1 temporal column"
7885+
eng "Table %`s must have at least one temporal column"
78867886

78877887
ER_VERS_NOT_VERSIONED
7888-
eng "Table %`s is not temporal"
7888+
eng "Table %`s is not system-versioned"
78897889

78907890
ER_MISSING
78917891
eng "Wrong parameters for %`s: missing '%s'"
@@ -7927,4 +7927,4 @@ ER_VERS_DUPLICATE_ROW_START_END
79277927
eng "Duplicate ROW %s column %`s"
79287928

79297929
ER_VERS_ALREADY_VERSIONED
7930-
eng "Table %`s is already temporal"
7930+
eng "Table %`s is already system-versioned"

0 commit comments

Comments
 (0)