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:
committed by
Oleksandr Byelkin
parent
1c192843f2
commit
4ce1470a70
@ -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;
|
||||
###########################################
|
||||
|
@ -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 ###########################################
|
||||
|
@ -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;
|
||||
###########################################
|
||||
|
@ -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 ###########################################
|
||||
|
Reference in New Issue
Block a user