You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have queries which reference a column after AT TIME ZONE rather than just supplying a string. This results in a valid query which executes as expected (in PostgreSQL). The parser currently raises an error Expected Token::SingleQuotedString after AT TIME ZONE, found: the_column.
For example, instead of SELECT datetime_column AT TIME ZONE 'America/Denver' FROM table it is also valid to have SELECT datetime_column AT TIME ZONE zone_column FROM table
We have queries which reference a column after
AT TIME ZONE
rather than just supplying a string. This results in a valid query which executes as expected (in PostgreSQL). The parser currently raises an errorExpected Token::SingleQuotedString after AT TIME ZONE, found: the_column
.For example, instead of
SELECT datetime_column AT TIME ZONE 'America/Denver' FROM table
it is also valid to haveSELECT datetime_column AT TIME ZONE zone_column FROM table
I believe further match conditions should be added here to patch: https://github.com/sqlparser-rs/sqlparser-rs/blob/main/src/parser.rs#L1322
The text was updated successfully, but these errors were encountered: