-
Notifications
You must be signed in to change notification settings - Fork 23
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
refactoring default
and on update
expressions
#296
Conversation
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, the specifics of the diff are a bit hard to understand but the api refactor makes sense
func_datetime_precision: | ||
openb value_expression closeb | ||
// Optional datetime precision for certain functions. | ||
func_datetime_prec_opt: |
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.
do we have error tests with non-integer precisions?
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.
This PR changes the grammar to more closely match MySQL's behavior, specifically around the
NOW()
function and its synonyms.Changes:
ON UPDATE
expressions against functinos that aren'tNOW()
or a synonym.NOW()
and synonyms; syntax error for anything elseCurTimeFuncExpr
from AST in favor of plainFuncExpr
Companion PR: dolthub/go-mysql-server#2218