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
{{ message }}
Repository navigation
Issue parsing postgres timestamptz as expression #1619
Interestingly SELECT * from table where x >= timestamptz('2021-07-05 00:00:00+00') (note the parens) does parse.
Simply because Anything(...) is parsed as a Function() (without understanding the particular means or purpose of Anything).
But since timestamptz '2021-07-05 00:00:00+00' does not match a Function() and not any allowed DATE_TIME_LITERAL you will need to declare it in the Grammar.
Activity
[-]Issue parsing postgres timestamptz [/-][+]Issue parsing postgres timestamptz as expression[/+]manticore-projects commentedon Aug 19, 2022
Greetings @tpoll. Thank you for considering to solve it by yourself.
You would need to:
4( Submit your PR
(Usually there is more to do, but in this case just adding a token could do.)
manticore-projects commentedon Aug 19, 2022
Simply because
Anything(...)is parsed as aFunction()(without understanding the particular means or purpose ofAnything).But since
timestamptz '2021-07-05 00:00:00+00'does not match aFunction()and not any allowedDATE_TIME_LITERALyou will need to declare it in the Grammar.tpoll commentedon Aug 19, 2022
Thanks for the pointers @manticore-projects. I opened up a PR which I believe should safely add support.