-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Postgres: Correct parsing of multiline statements #8512
Conversation
I wonder if it would make more sense to define a multiline string as one starting with |
Hi @ncabatoff ! Thanks for the review! :-) Regarding this:
I did some poking around and it looks like it would be possible for multiline statements to not include DO. |
Hmm, you're right. I was making the assumption that they wouldn't be issuing DDL statements because that would be weird, but people do weird stuff all the time... |
Looking in the changelog, it seems this has not been released yet? Was it simply omitted from the changelog or is it yet to be released? (Encountering the same issue in 1.5.0) |
Sorry, we missed adding it to the 1.5.0 changelog (I just added it there now.). Please open a new issue if you're still having problems of this sort with 1.5.0. |
Fixes #6098
Postgres was splitting statements on a semicolon. This would be fine normally, but sometimes people do send statements with semicolons that need to be parsed as a single query.
Example: