From 67d17193d761b9fb1006dab243eb428b594d9734 Mon Sep 17 00:00:00 2001 From: fzzf678 <108643977+fzzf678@users.noreply.github.com> Date: Mon, 30 Jan 2023 17:10:02 +0800 Subject: [PATCH 1/2] commit --- infoschema/cluster_tables_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/infoschema/cluster_tables_test.go b/infoschema/cluster_tables_test.go index 781f52bebe519..3ccfe5e619053 100644 --- a/infoschema/cluster_tables_test.go +++ b/infoschema/cluster_tables_test.go @@ -1053,6 +1053,7 @@ 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") } func TestCreateBindingWhenCloseStmtSummaryTable(t *testing.T) { From a218c0743771a5153ecf75e660b038c7e71773c1 Mon Sep 17 00:00:00 2001 From: fzzf678 <108643977+fzzf678@users.noreply.github.com> Date: Mon, 30 Jan 2023 17:15:15 +0800 Subject: [PATCH 2/2] Update cluster_tables_test.go --- infoschema/cluster_tables_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/infoschema/cluster_tables_test.go b/infoschema/cluster_tables_test.go index 3ccfe5e619053..ce73bb726ae4c 100644 --- a/infoschema/cluster_tables_test.go +++ b/infoschema/cluster_tables_test.go @@ -1054,6 +1054,7 @@ func TestSetBindingStatusBySQLDigest(t *testing.T) { 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) {