-
Notifications
You must be signed in to change notification settings - Fork 490
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, parser: add FUNCTION and PROCEDURE for GRANT object_type #1136
Conversation
@@ -11774,13 +11776,22 @@ PrivType: | |||
} | |||
|
|||
ObjectType: | |||
%prec lowerThanFunction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function is not a reserved keywork in 5.7 (but become reserved after 8.0.1). see https://dev.mysql.com/doc/refman/8.0/en/keywords.html#keywords-8-0-detailed-F
here I didn't change it to reserved to keep compatibility
PTAL @wjhuang2016 @leoppro @xhebox |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What problem does this PR solve?
parser didn't support
GRANT ... ON FUNCTION ...
, where DM plans to parse and check privileges in pingcap/dm#1320ref https://dev.mysql.com/doc/refman/5.7/en/grant.html
What is changed and how it works?
add
ObjectTypeFunction
andObjectTypeProcedure
Check List
Tests
Code changes
Side effects
Related changes