Skip to content

Ignore trailing comments in process worker validation#269

Merged
Maxteabag merged 1 commit into
mainfrom
test/issue-254-trailing-comment
Jul 14, 2026
Merged

Ignore trailing comments in process worker validation#269
Maxteabag merged 1 commit into
mainfrom
test/issue-254-trailing-comment

Conversation

@Maxteabag

Copy link
Copy Markdown
Owner

Fixes #254.

Ignores comment-only fragments during process-worker statement validation, with regression coverage.

The process worker counted raw SQL fragments before removing comment-only fragments, so a comment after a semicolon was rejected as a second statement. Reuse the existing comment classifier when enforcing the worker's single-statement boundary.

Constraint: Process workers must continue rejecting multiple executable statements
Rejected: Change SQL splitting semantics | broader behavior change than the worker validation bug requires
Confidence: high
Scope-risk: narrow
Directive: Keep worker statement validation aligned with other executable-statement paths
Tested: 48 focused process-worker and multi-statement tests; Ruff; mypy
Not-tested: Standalone trailing block comments
Related: #254
@Maxteabag
Maxteabag merged commit 0c607c7 into main Jul 14, 2026
21 checks passed
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.

[bug] Comment after query interpreted as multi-statement query.

1 participant