-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Query parse error #3149
Comments
This could be caused by the recent changes to support the |
I think we need to change IntervalExpr's Unit field to not be a |
Yea, colident seems unnecessary. Here's the docs on that UNIT field: https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html#function_date-add I think we should just change the Unit to a |
Issue vitessio#3149 In interval expressions keywords like year should printed without escaping.
I think this is a regression.
I have a query like this:
SELECT af.
<col_3>, DATE_FORMAT(MAX(af.
<col_1>), '%Y;%m;%e;23;59;59') fiscalEndDate, DATE_FORMAT(DATE_ADD(MAX(af.
<col_1>), INTERVAL 1 YEAR), '%Y;%m;%e;23;59;59') fiscalAddDate, MAX(af.
<col_1>) fiscalEndDateForSort FROM
af WHERE af.
<col_2>= '1' AND af.
<col_3>IN (123) GROUP BY af.
<col_3>;
MySQL returns this error:
select af.<col_3>, DATE_FORMAT(MAX(af.<col_1>), '%Y;%m;%e;23;59;59') as fiscalEndDate, DATE_FORMAT(DATE_ADD(MAX(af.<col_1>), interval 1
year`), '%Y;%m;%e;23;59;59') as fiscalAddDate,MAX(af.<col_1>) as fiscalEndDateForSort
from
The issue is here:
INTERVAL 1 YEAR) --> interval 1 `year`)
I think this issue is happening at the vttablet level?
The text was updated successfully, but these errors were encountered: