planner: update the syntax of drop hypo index (#44944)
close pingcap/tidb#43817
This commit is contained in:
@ -483,7 +483,7 @@ func TestSessionCtx(t *testing.T) {
|
||||
// check empty HypoIndexes
|
||||
setFunc: func(tk *testkit.TestKit) any {
|
||||
tk.MustExec(`create index hypo_id type hypo on test.t1(id)`)
|
||||
tk.MustExec(`drop index hypo_id on test.t1`)
|
||||
tk.MustExec(`drop hypo index hypo_id on test.t1`)
|
||||
require.Empty(t, tk.Session().GetSessionVars().HypoIndexes["test"]["t1"])
|
||||
return nil
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user