planner: update the syntax of drop hypo index (#44944)

close pingcap/tidb#43817
This commit is contained in:
Yuanjia Zhang
2023-06-26 17:08:35 +08:00
committed by GitHub
parent 352b44e1e4
commit 09bbf08d72
7 changed files with 5183 additions and 5147 deletions

View File

@ -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
},