Skip to content

Commit

Permalink
resource_control: support unquoted default group name (#45047)
Browse files Browse the repository at this point in the history
ref #43180
  • Loading branch information
glorv authored Jun 29, 2023
1 parent 8658a98 commit dec0ff7
Show file tree
Hide file tree
Showing 4 changed files with 4,292 additions and 4,281 deletions.
2 changes: 2 additions & 0 deletions executor/simple_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ func TestSetResourceGroup(t *testing.T) {
tk.MustQuery("SELECT CURRENT_RESOURCE_GROUP()").Check(testkit.Rows("rg2"))
tk.MustExec("SET RESOURCE GROUP ``")
tk.MustQuery("SELECT CURRENT_RESOURCE_GROUP()").Check(testkit.Rows("default"))
tk.MustExec("SET RESOURCE GROUP default")
tk.MustQuery("SELECT CURRENT_RESOURCE_GROUP()").Check(testkit.Rows("default"))

tk.RefreshSession()
require.NoError(t, tk.Session().Auth(&auth.UserIdentity{Username: "root", Hostname: "%"}, nil, nil, nil))
Expand Down
Loading

0 comments on commit dec0ff7

Please sign in to comment.