mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Fixed crash with SEQUENCE when using REPAIR
This commit is contained in:
42
mysql-test/suite/sql_sequence/other.result
Normal file
42
mysql-test/suite/sql_sequence/other.result
Normal file
@ -0,0 +1,42 @@
|
||||
#
|
||||
# Create and check
|
||||
#
|
||||
create sequence s1 engine=innodb;
|
||||
check table s1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.s1 check note The storage engine for the table doesn't support check
|
||||
select next value for s1;
|
||||
next value for s1
|
||||
1
|
||||
flush tables;
|
||||
check table s1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.s1 check note The storage engine for the table doesn't support check
|
||||
select next value for s1;
|
||||
next value for s1
|
||||
1001
|
||||
flush tables;
|
||||
repair table s1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.s1 repair note The storage engine for the table doesn't support repair
|
||||
select next value for s1;
|
||||
next value for s1
|
||||
2001
|
||||
drop sequence s1;
|
||||
create or replace sequence s1 engine=innodb;
|
||||
select next value for s1;
|
||||
next value for s1
|
||||
1
|
||||
repair table s1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.s1 repair note The storage engine for the table doesn't support repair
|
||||
check table s1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.s1 check note The storage engine for the table doesn't support check
|
||||
select next value for s1;
|
||||
next value for s1
|
||||
1001
|
||||
select * from s1;
|
||||
next_value min_value max_value start increment cache cycle round
|
||||
2001 1 9223372036854775806 1 1 1000 0 0
|
||||
drop sequence s1;
|
29
mysql-test/suite/sql_sequence/other.test
Normal file
29
mysql-test/suite/sql_sequence/other.test
Normal file
@ -0,0 +1,29 @@
|
||||
--source include/have_sequence.inc
|
||||
--source include/have_innodb.inc
|
||||
|
||||
#
|
||||
# Test various combinations of operations on sequence
|
||||
#
|
||||
|
||||
--echo #
|
||||
--echo # Create and check
|
||||
--echo #
|
||||
|
||||
create sequence s1 engine=innodb;
|
||||
check table s1;
|
||||
select next value for s1;
|
||||
flush tables;
|
||||
check table s1;
|
||||
select next value for s1;
|
||||
flush tables;
|
||||
repair table s1;
|
||||
select next value for s1;
|
||||
drop sequence s1;
|
||||
|
||||
create or replace sequence s1 engine=innodb;
|
||||
select next value for s1;
|
||||
repair table s1;
|
||||
check table s1;
|
||||
select next value for s1;
|
||||
select * from s1;
|
||||
drop sequence s1;
|
Reference in New Issue
Block a user