Skip to content
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

Merged
merged 5 commits into from
Dec 17, 2019
Merged

privilege: make 'grant all privileges' work right (#11449) #14092

merged 5 commits into from
Dec 17, 2019

Conversation

lysu
Copy link
Contributor

@lysu lysu commented Dec 17, 2019

cherry-pick #11449 to 3.0

need merge with pingcap/parser#686


This change is Reviewable

@lysu
Copy link
Contributor Author

lysu commented Dec 17, 2019

/run-all-tests

@imtbkcat
Copy link

@lysu try to update your parser in go.mod

@lysu
Copy link
Contributor Author

lysu commented Dec 17, 2019

/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'")

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

@lysu
Copy link
Contributor Author

lysu commented Dec 17, 2019

/run-unit-test

Copy link

@imtbkcat imtbkcat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lysu lysu requested a review from jackysp December 17, 2019 11:48
Copy link
Member

@jackysp jackysp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jackysp
Copy link
Member

jackysp commented Dec 17, 2019

/merge

@sre-bot sre-bot added the status/can-merge Indicates a PR has been approved by a committer. label Dec 17, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Dec 17, 2019

/run-all-tests

@sre-bot sre-bot merged commit d0502a6 into pingcap:release-3.0 Dec 17, 2019
@lysu lysu deleted the cp-grant-all-fix branch January 3, 2020 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/privilege status/can-merge Indicates a PR has been approved by a committer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants