-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed crash with SEQUENCE when using REPAIR
- Loading branch information
Showing
5 changed files
with
86 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters