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

ast: add role support show grant #272

Merged
merged 3 commits into from
Apr 12, 2019
Merged

Conversation

imtbkcat
Copy link

@imtbkcat imtbkcat commented Apr 3, 2019

What problem does this PR solve?

Adding SHOW GRANT USING roles support.

What is changed and how it works?

Adding Roles field for ShowStmt, which store information in UsingOption.

Check List

Tests

  • Unit test

Code changes

  • Has exported variable/fields change

Side effects

  • Increased code complexity

parser.y Outdated
@@ -854,6 +854,7 @@ import (
UserSpec "Username and auth option"
UserSpecList "Username and auth option list"
UserVariableList "User defined variable name list"
UsingRoles "UsingRoles is role option for SHOW GRANT"
Copy link
Member

Choose a reason for hiding this comment

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

Please keep aligning.

Copy link
Author

Choose a reason for hiding this comment

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

@jackysp fixed.

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.

rest LGTM

@imtbkcat imtbkcat force-pushed the showgrant branch 3 times, most recently from 76648a9 to 74eb848 Compare April 9, 2019 03:34
@CLAassistant
Copy link

CLAassistant commented Apr 12, 2019

CLA assistant check
All committers have signed the CLA.

ast/dml.go Outdated Show resolved Hide resolved
parser.y Outdated Show resolved Hide resolved
Copy link
Contributor

@kennytm kennytm left a comment

Choose a reason for hiding this comment

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

LGTM

@imtbkcat
Copy link
Author

@kennytm Please merge this pr, because i dont have write access privilege.

@kennytm kennytm added the status/LGT2 LGT2 label Apr 12, 2019
@kennytm kennytm merged commit 500a7c8 into pingcap:master Apr 12, 2019
tiancaiamao pushed a commit to tiancaiamao/parser that referenced this pull request Apr 27, 2021
* add option for show grant

* fix tab

* address comment
lyonzhi pushed a commit to lyonzhi/parser that referenced this pull request Apr 25, 2024
* add option for show grant

* fix tab

* address comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants