From 17c9d01a93a0bb035282e351080acde35425bd7d Mon Sep 17 00:00:00 2001 From: glorv Date: Mon, 6 Mar 2023 17:02:08 +0800 Subject: [PATCH] fix test --- executor/simple_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/executor/simple_test.go b/executor/simple_test.go index 432ab69e0c124..7b4d340bc6a84 100644 --- a/executor/simple_test.go +++ b/executor/simple_test.go @@ -144,17 +144,17 @@ func TestSetResourceGroup(t *testing.T) { tk.MustExec("CREATE RESOURCE GROUP rg1 ru_per_sec = 100") tk.MustExec("ALTER USER `root` RESOURCE GROUP `rg1`") - tk.MustQuery("SELECT CURRENT_RESOURCE_GROUP").Check(testkit.Rows("")) + tk.MustQuery("SELECT CURRENT_RESOURCE_GROUP()").Check(testkit.Rows("")) require.NoError(t, tk.Session().Auth(&auth.UserIdentity{Username: "root", Hostname: "%"}, nil, nil)) - tk.MustQuery("SELECT CURRENT_RESOURCE_GROUP").Check(testkit.Rows("rg1")) + tk.MustQuery("SELECT CURRENT_RESOURCE_GROUP()").Check(testkit.Rows("rg1")) tk.MustExec("CREATE RESOURCE GROUP rg2 ru_per_sec = 200") tk.MustExec("SET RESOURCE GROUP `rg2`") - tk.MustQuery("SELECT CURRENT_RESOURCE_GROUP").Check(testkit.Rows("rg2")) + tk.MustQuery("SELECT CURRENT_RESOURCE_GROUP()").Check(testkit.Rows("rg2")) tk.MustExec("SET RESOURCE GROUP ``") - tk.MustQuery("SELECT CURRENT_RESOURCE_GROUP").Check(testkit.Rows("")) + tk.MustQuery("SELECT CURRENT_RESOURCE_GROUP()").Check(testkit.Rows("")) tk.RefreshSession() require.NoError(t, tk.Session().Auth(&auth.UserIdentity{Username: "root", Hostname: "%"}, nil, nil)) - tk.MustQuery("SELECT CURRENT_RESOURCE_GROUP").Check(testkit.Rows("rg1")) + tk.MustQuery("SELECT CURRENT_RESOURCE_GROUP()").Check(testkit.Rows("rg1")) }