From 685f1f916694b7d2ab042e7303b667d8aa9c5a43 Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Thu, 7 Mar 2024 16:58:04 +0800 Subject: [PATCH] update --- pkg/bindinfo/tests/bind_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/bindinfo/tests/bind_test.go b/pkg/bindinfo/tests/bind_test.go index ecd47edd6b5de..2b89ba516ce33 100644 --- a/pkg/bindinfo/tests/bind_test.go +++ b/pkg/bindinfo/tests/bind_test.go @@ -514,6 +514,7 @@ func TestHintsSetID(t *testing.T) { _, fuzzyDigest := norm.NormalizeStmtForBinding(stmt, norm.WithFuzz(true)) binding, matched, isMissed := dom.BindHandle().MatchGlobalBinding(tk.Session(), fuzzyDigest, bindinfo.CollectTableNames(stmt)) require.True(t, matched) + require.False(t, isMissed) require.Equal(t, "select * from `test` . `t` where `a` > ?", binding.OriginalSQL) require.Equal(t, "use_index(@`sel_1` `test`.`t` `idx_a`)", binding.ID)