Skip to content

Commit

Permalink
planner: supply test cases for binding from history (#40864)
Browse files Browse the repository at this point in the history
ref #39199
  • Loading branch information
fzzf678 authored Jan 30, 2023
1 parent 86b058b commit 01f4fea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions infoschema/cluster_tables_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1053,6 +1053,8 @@ func TestSetBindingStatusBySQLDigest(t *testing.T) {
tk.MustExec(sql)
tk.MustQuery("select @@last_plan_from_binding").Check(testkit.Rows("1"))
tk.MustGetErrMsg("set binding enabled for sql digest '2'", "can't find any binding for '2'")
tk.MustGetErrMsg("set binding enabled for sql digest ''", "sql digest is empty")
tk.MustGetErrMsg("set binding disabled for sql digest ''", "sql digest is empty")
}

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

0 comments on commit 01f4fea

Please sign in to comment.