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

planner/core: fix privilege check for grant on table #9828

Merged
merged 3 commits into from
Mar 22, 2019

Conversation

tiancaiamao
Copy link
Contributor

What problem does this PR solve?

Fix #9781

What is changed and how it works?

In this SQL: GRANT SELECT ON t1 TO 'nonsuper',
the database name of visit info should be set to current database.

Check List

Tests

  • Unit test
  • Manual test (add detailed scripts or steps below)

Fix pingcap#9781
In this SQL: GRANT SELECT ON t1 TO 'nonsuper', the database name of
visit info should be set to current database.
@tiancaiamao
Copy link
Contributor Author

PTAL @jackysp @morgo

@codecov
Copy link

codecov bot commented Mar 20, 2019

Codecov Report

Merging #9828 into master will increase coverage by 0.0095%.
The diff coverage is 100%.

@@               Coverage Diff                @@
##             master      #9828        +/-   ##
================================================
+ Coverage   67.4095%   67.4191%   +0.0095%     
================================================
  Files           383        383                
  Lines         80137      80139         +2     
================================================
+ Hits          54020      54029         +9     
+ Misses        21289      21284         -5     
+ Partials       4828       4826         -2

@morgo
Copy link
Contributor

morgo commented Mar 20, 2019

LGTM

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 Mar 21, 2019

/run-all-tests

@shenli
Copy link
Member

shenli commented Mar 21, 2019

LGTM

@shenli
Copy link
Member

shenli commented Mar 21, 2019

@tiancaiamao Do we need to cherry-pick this to the release-2.1?

@tiancaiamao
Copy link
Contributor Author

/run-all-tests

Ok,I'll do it @shenli

@tiancaiamao tiancaiamao added the type/bugfix This PR fixes a bug. label Mar 22, 2019
@tiancaiamao tiancaiamao merged commit 34f53eb into pingcap:master Mar 22, 2019
@tiancaiamao tiancaiamao deleted the fix-issue-9781 branch March 22, 2019 02:17
tiancaiamao added a commit to tiancaiamao/tidb that referenced this pull request Mar 22, 2019
Fix pingcap#9781
In this SQL: GRANT SELECT ON t1 TO 'nonsuper', the database name of
visit info should be set to current database.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants