Skip to content

Fix _split_sql splitting on semicolon in block comment (#62) - #63

Merged
aersam merged 2 commits into
mainfrom
fix-62-block-comment
Oct 30, 2026
Merged

aersam merged 2 commits into
mainfrom
fix-62-block-comment

Conversation

@aersam

@aersam aersam commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Fixes #62

_split_sql now tracks /* ... */ block comments (nesting, like Postgres), so a semicolon inside one no longer ends a statement. /* inside a string, dollar-quoted block or -- comment does not start a comment. Added tests for plain, nested and multi-line block comments plus those negative cases.

Version bumped 0.17.0 -> 0.17.1 (pyproject.toml + uv.lock).

🤖 Generated with Claude Code

@aersam
aersam marked this pull request as ready for review October 30, 2026 20:54
@aersam
aersam merged commit cf8589f into main Oct 30, 2026
2 checks passed
aersam and others added 2 commits October 30, 2026 22:11
…); bump to 0.17.1

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

_split_sql splits on a semicolon inside a /* block comment */ (migration fails with 'unterminated /* comment')

1 participant