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
hey! thanks for reporting. this is actually by design. we spent a long time trying to figure out how to split a potentially invalid source file into individual statements. we ended up with a naive approach that tries to be "smart" about common statements but always splits at double newlines (and semicolons ofc) as a fallback. you can find more about the rationale in our blog post.
Ok thanks. Yeah this makes sense, FWIW, this issue (along with a few others that were raised and closed) were the only ones that were raised out of checking a pretty large codebase. So generally speaking I think you've done really well.
I do think ultimately you'd be better off exposing the client side lexer from libpq which would then manage all of these considerations (we briefly discussed this in another topic) which would give provable parity with server processing at a statement level which INSHO ought to be a design goal; I suspect there may be other edge cases lurking. Either way, I'm a huge fan of this project and will continue to support as I'm able.
parsing the following valid SQL:
...yields
The text was updated successfully, but these errors were encountered: