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: use internal session to run SET DEFAULT ROL ALL #15525

Merged
merged 5 commits into from
Mar 23, 2020

Conversation

imtbkcat
Copy link

What problem does this PR solve?

SET DEFAULT ROLE ALL is using context session to run internal SQL. Error will occur if user don't have SELECT privilege on mysql.default_roles

What is changed and how it works?

using internal session to run SET DEFAULT ALL

Related changes

  • Need to cherry-pick to the release branch

Check List

Tests

  • Unit test

Side effects

  • NONE

Release note

@imtbkcat imtbkcat requested a review from a team as a code owner March 20, 2020 10:49
@ghost ghost requested review from SunRunAway and wshwsh12 and removed request for a team March 20, 2020 10:49
@github-actions github-actions bot added the sig/execution SIG execution label Mar 20, 2020
@codecov
Copy link

codecov bot commented Mar 20, 2020

Codecov Report

Merging #15525 into master will not change coverage by %.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master     #15525   +/-   ##
===========================================
  Coverage   80.4497%   80.4497%           
===========================================
  Files           503        503           
  Lines        134648     134648           
===========================================
  Hits         108324     108324           
  Misses        17810      17810           
  Partials       8514       8514           

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

@tiancaiamao
Copy link
Contributor

Is there a test to cover this?

@imtbkcat imtbkcat added priority/non-release-blocker priority/release-blocker This issue blocks a release. Please solve it ASAP. and removed priority/non-release-blocker labels Mar 23, 2020
@CLAassistant
Copy link

CLAassistant commented Mar 23, 2020

CLA assistant check
All committers have signed the CLA.

@imtbkcat
Copy link
Author

@tiancaiamao test has been added.

@imtbkcat
Copy link
Author

/run-all-tests

@imtbkcat
Copy link
Author

/run-all-tests

@tiancaiamao
Copy link
Contributor

LGTM

@tiancaiamao tiancaiamao merged commit 20b555c into pingcap:master Mar 23, 2020
sre-bot pushed a commit to sre-bot/tidb that referenced this pull request Mar 23, 2020
Signed-off-by: sre-bot <sre-bot@pingcap.com>
@sre-bot
Copy link
Contributor

sre-bot commented Mar 23, 2020

cherry pick to release-3.0 in PR #15585

sre-bot pushed a commit to sre-bot/tidb that referenced this pull request Mar 23, 2020
Signed-off-by: sre-bot <sre-bot@pingcap.com>
@sre-bot
Copy link
Contributor

sre-bot commented Mar 23, 2020

cherry pick to release-3.1 in PR #15586

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/privilege priority/release-blocker This issue blocks a release. Please solve it ASAP. sig/execution SIG execution type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants