Skip to content
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

util/sqlutil: fix handling of block delimiters in SplitQuery #3775

Merged
merged 4 commits into from
Mar 27, 2024

Conversation

mastercactapus
Copy link
Member

Description:
The SplitQuery function wrongly assumed $$ was the only possible block delimiter, when it can be a user-defined tag like $foobar$

This PR fixes the bug and adds a test case for the more complex case.

More info:
https://www.postgresql.org/docs/16/sql-syntax-lexical.html#SQL-SYNTAX-DOLLAR-QUOTING

@mastercactapus mastercactapus merged commit f814183 into master Mar 27, 2024
7 checks passed
@mastercactapus mastercactapus deleted the fix-splitquery-blocks branch March 27, 2024 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants