-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
privilege: make 'grant all privileges' work right (#11449) #14092
Conversation
/run-all-tests |
@lysu try to update your parser in |
/run-all-tests |
func (s *testPrivilegeSuite) TestUserTableConsistency(c *C) { | ||
tk := testkit.NewTestKit(c, s.store) | ||
tk.MustExec("create user superadmin") | ||
tk.MustExec("grant all privileges on *.* to 'superadmin'") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in order to cover all privilege, here should be grant all privileges on *.* to 'superadmin' with grant option
/run-unit-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/merge |
/run-all-tests |
cherry-pick #11449 to 3.0
need merge with pingcap/parser#686
This change is