Closed d2a-raudenaerde closed 4 weeks ago
Greetings!
this is a known issue which does not have a good solution because: What statement
would you want the parser to return here?
Instead, apply a SQL Comment filter (e.g. using a regex) and check remaining length before sending to the parser.
Well, I expect an empty list as I am parsing multiple statements :)
(alternatively, EmptyStatement would be ok-isch)
Well, I expect an empty list as I am parsing multiple statements :)
(alternatively, EmptyStatement would be ok-isch)
I get your point and before actually working on the parser I would have done the same. However, the Parser Generator is not easily supporting this because there is only "IF MATCH" but no "ELSE".
If you can make it work, your PR will be most welcome. I myself find it easier to mangle the the statements before with Regular expressions.
Failing SQL Feature:
SQL Example:
Software Information:
This works fine in Postgres