Skip to content

Commit

Permalink
This is an automated cherry-pick of pingcap#38966
Browse files Browse the repository at this point in the history
Signed-off-by: YangKeao <[email protected]>
  • Loading branch information
YangKeao committed Nov 15, 2022
1 parent e1a4c9c commit e64723d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions planner/core/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5425,14 +5425,12 @@ func (s *testIntegrationSuite) TestExplainAnalyzeDMLCommit(c *C) {
tk.MustQuery("select * from t").Check(testkit.Rows())
}

func TestAutoIncrementCheckWithCheckConstraint(t *testing.T) {
store := testkit.CreateMockStore(t)
tk := testkit.NewTestKit(t, store)
func (s *testIntegrationSuite) TestAutoIncrementCheckWithCheckConstraint(c *C) {
tk := testkit.NewTestKit(c, s.store)
tk.MustExec("use test")
tk.MustExec(`CREATE TABLE t (
id INTEGER NOT NULL AUTO_INCREMENT,
CHECK (id IN (0, 1)),
KEY idx_autoinc_id (id)
)`)
}
>>>>>>> 94aa804096 (auto_inc,constraint: Ignore check constraint for auto-increment check (#38966))

0 comments on commit e64723d

Please sign in to comment.