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

cleanup: tests

sequence tests verify that one cannot change the structure
of the table. for that they need a valid alter table that
adds an index over an existing column. there's no column 'start'
in the table
This commit is contained in:
Sergei Golubchik
2022-07-29 12:39:37 +02:00
committed by Oleksandr Byelkin
parent 1c192843f2
commit 4ce1470a70
7 changed files with 101 additions and 76 deletions

View File

@ -68,7 +68,7 @@ connection master;
create sequence s2;
alter table s2 add id int;
ERROR HY000: Sequence 's_db.s2' table structure is invalid (Wrong number of columns)
alter table s2 add index ind_x(start);
alter table s2 add index ind_x(start_value);
ERROR HY000: Sequence 's_db.s2' table structure is invalid (Sequence tables cannot have any keys)
drop sequence s2;
###########################################

View File

@ -70,7 +70,7 @@ create sequence s2;
alter table s2 add id int;
--error ER_SEQUENCE_INVALID_TABLE_STRUCTURE
alter table s2 add index ind_x(start);
alter table s2 add index ind_x(start_value);
drop sequence s2;
--echo ###########################################

View File

@ -64,7 +64,7 @@ connection master;
create sequence s2;
alter table s2 add id int;
ERROR HY000: Sequence 's_db.s2' table structure is invalid (Wrong number of columns)
alter table s2 add index ind_x(start);
alter table s2 add index ind_x(start_value);
ERROR HY000: Sequence 's_db.s2' table structure is invalid (Sequence tables cannot have any keys)
drop sequence s2;
###########################################

View File

@ -70,7 +70,7 @@ create sequence s2;
alter table s2 add id int;
--error ER_SEQUENCE_INVALID_TABLE_STRUCTURE
alter table s2 add index ind_x(start);
alter table s2 add index ind_x(start_value);
drop sequence s2;
--echo ###########################################