-
Notifications
You must be signed in to change notification settings - Fork 21.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dash comments should match read query regexp
As well as allowing queries of the form /* some comment */ SELECT ... we should also allow queries of the form -- some comment SELECT ... Additionally, I've added tests for both comment forms into the general adapter test case, along with some additional checks to ensure that the regexp does not return a false-positive match if the read query signifier keyword is actually a part of the comment. This expands on the change already implemented in 12b964c.
- Loading branch information
1 parent
9fb4ce4
commit d44b628
Showing
3 changed files
with
71 additions
and
1 deletion.
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