diff --git a/infoschema/cluster_tables_test.go b/infoschema/cluster_tables_test.go index 781f52bebe519..ce73bb726ae4c 100644 --- a/infoschema/cluster_tables_test.go +++ b/infoschema/cluster_tables_test.go @@ -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) {