Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tiancaiamao committed Nov 3, 2022
1 parent 0fd6c0b commit b792d93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ddl/db_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2801,11 +2801,11 @@ func TestAlterTableAutoIDCache(t *testing.T) {
tk.MustQuery("show table t next_row_id").Check(testkit.Rows("test t id 2000102 AUTO_INCREMENT"))

tk.MustExec("alter table t auto_id_cache = 20000")
tk.MustQuery("show table t next_row_id").Check(testkit.Rows("test t id 2002101 AUTO_INCREMENT"))
tk.MustQuery("show table t next_row_id").Check(testkit.Rows("test t id 2000102 AUTO_INCREMENT"))

tk.MustExec("insert into t values ()")
tk.MustQuery("select * from t").Check(testkit.Rows("1", "2000001", "2000101", "2002101"))
tk.MustQuery("show table t next_row_id").Check(testkit.Rows("test t id 2022101 AUTO_INCREMENT"))
tk.MustQuery("select * from t").Check(testkit.Rows("1", "2000001", "2000101", "2000102"))
tk.MustQuery("show table t next_row_id").Check(testkit.Rows("test t id 2020102 AUTO_INCREMENT"))
}

func TestAlterIndexVisibility(t *testing.T) {
Expand Down

0 comments on commit b792d93

Please sign in to comment.