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

fix: properly trim statement #313

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

juleswritescode
Copy link
Collaborator

Before, changing select * from to select * from resultet in a ModifiedStatement.new_stmt_text === 'select * fro (the m was accidentally trimmed).

This was because we subtracted the diff_size from the end of the new statement, even if the diff range wasn't included in the new statement anymore.

This PR fixes it :)

Copy link
Collaborator

@psteinroe psteinroe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch!

juleswritescode and others added 3 commits April 6, 2025 15:37
Co-authored-by: Philipp Steinrötter <philipp@steinroetter.com>
Co-authored-by: Philipp Steinrötter <philipp@steinroetter.com>
Co-authored-by: Philipp Steinrötter <philipp@steinroetter.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.

2 participants