-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 unquoted stmt fragments backslash escaping #3772
Fix unquoted stmt fragments backslash escaping #3772
Conversation
"Cannot find path 'C:\tools\php' because it does not exist" seems unrelated :) |
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.
@ChristophWurst the patch looks good. While the existing tests look weird: why would anyone want to escape using a double slash? The SQL syntax explicitly states that it should be a character, not a string.
Could you try rebasing and see if the build gets fixed? Otherwise, I'll have to change the repository settings in order to be able to merge the PR. |
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
No worries. Squashed it :) |
Hey @morozov, sorry for poking in this closed PR but can we backport this fix to the older versions 2.9 or 2.10? I couldn't find the docs about your backporting process and/or guidelines. Shall I open a ticket? |
@ChristophWurst see the list of supported versions on the website. I can backport it to |
Got it. Thanks for the quick answer! |
Fix unquoted stmt fragments backslash escaping
Summary
See #3640. A backslash in a literal wasn't detect by the statement parser and it thus failed to find the position of placeholders.
This is based on and supersedes #3641 with the new test case.