mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-35856 Remove error code introduced to 10.11 in MDEV-36032
Two new error codes ER_SEQUENCE_TABLE_HAS_TOO_FEW_ROWS and ER_SEQUENCE_TABLE_HAS_TOO_MANY_ROWS were introduced in MDEV-36032 in both 10.11 and, as part of MDEV-22491, 12.0. Here we remove them from 10.11, but they should remain in 12.0.
This commit is contained in:
@@ -426,7 +426,7 @@ create sequence s;
|
||||
alter table s sequence=0;
|
||||
insert into s values (3,1,9223372036854775806,1,1,1000,0,0);
|
||||
alter table s sequence=1;
|
||||
ERROR HY000: More than one row in the table
|
||||
ERROR HY000: Internal error: More than one row in the table
|
||||
drop table s;
|
||||
create sequence s;
|
||||
alter table s sequence=0;
|
||||
@@ -475,17 +475,17 @@ CREATE TABLE `s1` (
|
||||
`cycle_count` bigint(21) NOT NULL COMMENT 'How many cycles have been done'
|
||||
) ENGINE=innodb;
|
||||
alter table s1 sequence=1;
|
||||
ERROR HY000: Fewer than one row in the table
|
||||
ERROR HY000: Internal error: Fewer than one row in the table
|
||||
alter table s1 sequence=0;
|
||||
insert into s1 values (1,1,9223372036854775806,1,1,1000,0,0);
|
||||
alter table s1 sequence=1;
|
||||
alter table s1 sequence=0;
|
||||
insert into s1 values (2,1,9223372036854775806,1,1,1000,0,0);
|
||||
alter table s1 sequence=1;
|
||||
ERROR HY000: More than one row in the table
|
||||
ERROR HY000: Internal error: More than one row in the table
|
||||
alter table s1 sequence=0;
|
||||
insert into s1 values (3,1,9223372036854775806,1,1,1000,0,0);
|
||||
alter table s1 sequence=1;
|
||||
ERROR HY000: More than one row in the table
|
||||
ERROR HY000: Internal error: More than one row in the table
|
||||
drop table s1;
|
||||
# End of 10.11 tests
|
||||
|
@@ -304,7 +304,7 @@ DROP SEQUENCE s2;
|
||||
create sequence s;
|
||||
alter table s sequence=0;
|
||||
insert into s values (3,1,9223372036854775806,1,1,1000,0,0);
|
||||
--error ER_SEQUENCE_TABLE_HAS_TOO_MANY_ROWS
|
||||
--error ER_INTERNAL_ERROR
|
||||
alter table s sequence=1;
|
||||
drop table s;
|
||||
|
||||
@@ -355,7 +355,7 @@ CREATE TABLE `s1` (
|
||||
`cycle_count` bigint(21) NOT NULL COMMENT 'How many cycles have been done'
|
||||
) ENGINE=innodb;
|
||||
|
||||
--error ER_SEQUENCE_TABLE_HAS_TOO_FEW_ROWS
|
||||
--error ER_INTERNAL_ERROR
|
||||
alter table s1 sequence=1;
|
||||
# (for coverage) alter a non sequence table with sequence=0
|
||||
alter table s1 sequence=0;
|
||||
@@ -364,13 +364,13 @@ alter table s1 sequence=1;
|
||||
|
||||
alter table s1 sequence=0;
|
||||
insert into s1 values (2,1,9223372036854775806,1,1,1000,0,0);
|
||||
--error ER_SEQUENCE_TABLE_HAS_TOO_MANY_ROWS
|
||||
--error ER_INTERNAL_ERROR
|
||||
alter table s1 sequence=1;
|
||||
|
||||
# (for coverage) alter a non sequence table with sequence=0
|
||||
alter table s1 sequence=0;
|
||||
insert into s1 values (3,1,9223372036854775806,1,1,1000,0,0);
|
||||
--error ER_SEQUENCE_TABLE_HAS_TOO_MANY_ROWS
|
||||
--error ER_INTERNAL_ERROR
|
||||
alter table s1 sequence=1;
|
||||
|
||||
drop table s1;
|
||||
|
Reference in New Issue
Block a user