- Notifications
You must be signed in to change notification settings - Fork102
fix: properly trim statement#313
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Great catch!
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
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>
…unity/postgres_lsp into fix/statement-trim
7278f90
intomainUh oh!
There was an error while loading.Please reload this page.
Before, changing
select * from
toselect * from
resultet in aModifiedStatement.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 :)