-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
7 additions
and
9 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
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 |
---|---|---|
@@ -1,11 +1,9 @@ | ||
# Test BR and AutoIncrement | ||
|
||
CREATE TABLE t1 (a INT PRIMARY KEY NONCLUSTERED AUTO_INCREMENT, b INT) AUTO_ID_CACHE = 1; | ||
CREATE TABLE t1 (a INT PRIMARY KEY NONCLUSTERED AUTO_INCREMENT, b INT) AUTO_ID_CACHE = 100; | ||
INSERT INTO t1 (b) VALUES (1), (2), (3); | ||
SHOW TABLE t1 NEXT_ROW_ID; | ||
|
||
--backup_and_restore t1 AS tt1 | ||
|
||
SHOW TABLE tt1 NEXT_ROW_ID; | ||
INSERT INTO tt1 (b) VALUES (4), (5), (6); | ||
SHOW TABLE tt1 NEXT_ROW_ID; |