Skip to content

Conversation

@rolandwalker
Copy link
Contributor

Description

An inline comment could change the indexing of the tokens by introducing whitespace. The re.sub() fix is brutal but doesn't change the tokens.

The fix also applies to extra whitespace without comments, which alone could also break the query_is_single_table_update() detection.

Checklist

  • I added this contribution to the changelog.md file.
  • I added my name to the AUTHORS file (or it's already there).
  • To lint and format the code, I ran
    uv run ruff check && uv run ruff format && uv run mypy --install-types .

An inline comment could change the indexing of the tokens by introducing
whitespace.  The re.sub() fix is brutal but doesn't change the tokens.

The fix also applies to extra whitespace without comments, which alone
could also break the query_is_single_table_update() detection.
@rolandwalker rolandwalker self-assigned this Feb 10, 2026
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.

1 participant