-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Handle multiline sql without spaces
When replacing multiline comment, it is now done with a space instead of nothing since this would be valid sql: ```sql SELECT pid FROM/*comment*/pg_stat_activity; ``` But replacing the comment with "" would make it incorrect. Also join the lines in query on getContent with a space to remove the need for spaces in the sql. Previously this sql: ```sql SELECT some_column FROM some_table; ``` would result in this error: `[error] column "some_columnfrom" does not exist` This PR fixes that.
- Loading branch information
1 parent
9b51f22
commit 45e465a
Showing
3 changed files
with
27 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters