-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
parser: Add more keywords into UnReservedKeyword list #80
Conversation
year and now are time functions, it is ok not adding in function parser? |
It is OK. |
LGTM |
Merge with master and fix conflict and fix golint error. |
|
||
"AUTO_INCREMENT" | "AFTER" | "BEGIN" | "BIT" | "BOOL" | "BOOLEAN" | "CHARSET" | "COLUMNS" | "COMMIT" | ||
| "DATE" | "DATETIME" | "DEALLOCATE" | "DO" | "END" | "ENGINE" | "ENGINES" | "EXECUTE" | "FIRST" | "FULL" | ||
| "LOCAL" | "NAMES" | "OFFSET" | "PASSWORD" %prec lowerThanEq | "PREPARE" | "QUICK" | "ROLLBACK" | "SESSION" | "SIGNED" |
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.
should we put PASSWORD in a single line, because it has a precedence.
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.
Not necessary. We have "|" to separate different rules. So I think the %prec will not affect other rules.
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.
I know that %prec will not affect other rules. I just think it seems different from others with %prec.
Address comment
PTAL |
LGTM |
1 similar comment
LGTM |
parser: Add more keywords into UnReservedKeyword list
* docs: update for 2.1 * docs: added Chinese translation * docs: fixed comments * Update docs/en_US/02-Deployment.md Co-Authored-By: kennytm <[email protected]> * Update docs/en_US/02-Deployment.md Co-Authored-By: kennytm <[email protected]> * Update docs/en_US/02-Deployment.md Co-Authored-By: kennytm <[email protected]> * Update docs/en_US/02-Deployment.md Co-Authored-By: kennytm <[email protected]> * Update docs/en_US/05-Errors.md Co-Authored-By: kennytm <[email protected]> * Update docs/en_US/05-Errors.md Co-Authored-By: kennytm <[email protected]> * Update docs/en_US/05-Errors.md Co-Authored-By: kennytm <[email protected]> * Update docs/en_US/05-Errors.md Co-Authored-By: kennytm <[email protected]> * docs: addressed comments * Update README.md Co-Authored-By: kennytm <[email protected]>
Co-authored-by: Chunzhu Li <[email protected]>
See: https://dev.mysql.com/doc/refman/5.7/en/keywords.html
Unreserved keywords can be used as identifiers.