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, executor: fix show view privileges for explain #10585

Merged
merged 4 commits into from
May 27, 2019

Conversation

bb7133
Copy link
Member

@bb7133 bb7133 commented May 23, 2019

What problem does this PR solve?

This PR try to close #9875

What is changed and how it works?

An IsExplainStmt is added to StatementContext, and it helps to check SHOW VIEW privilege in EXPLAIN SELECT ... a view.

Check List

Tests

  • Unit test
  • Integration test

Code changes

  • Has exported function/method change

@codecov
Copy link

codecov bot commented May 23, 2019

Codecov Report

Merging #10585 into master will increase coverage by 0.1419%.
The diff coverage is 100%.

@@               Coverage Diff                @@
##             master     #10585        +/-   ##
================================================
+ Coverage   77.2406%   77.3825%   +0.1419%     
================================================
  Files           413        413                
  Lines         87476      87468         -8     
================================================
+ Hits          67567      67685       +118     
+ Misses        14717      14575       -142     
- Partials       5192       5208        +16

@bb7133
Copy link
Member Author

bb7133 commented May 24, 2019

PTAL @erjiaqing

Copy link
Contributor

@XuHuaiyu XuHuaiyu left a comment

Choose a reason for hiding this comment

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

LGTM

@XuHuaiyu XuHuaiyu added the status/LGT1 Indicates that a PR has LGTM 1. label May 24, 2019
Copy link
Contributor

@crazycs520 crazycs520 left a comment

Choose a reason for hiding this comment

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

LGTM

@crazycs520 crazycs520 added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels May 27, 2019
@crazycs520
Copy link
Contributor

/run-all-tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/privilege status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EXPLAIN Select * from view requires different privileges to MySQL
5 participants