How to parse a query with reserved keyword (end) in SELECT statement? #1049
-
I am trying to parse the following query using
But getting an error of :
When I put the It parses successfully. Is there a way to have sqlgot parse SELECT queries with reserved keywords in them? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, that is usually solved by adding the token of interest to the |
Beta Was this translation helpful? Give feedback.
Yes, that is usually solved by adding the token of interest to the
ID_VAR_TOKENS
set in the parser. I'm not sure what the implications of addingEND
will be, but I can take a look soon if needed. A PR is welcome, too. :)