-
Notifications
You must be signed in to change notification settings - Fork 139
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
Unable to escape characters for string literals[BUG] #297
Comments
This issue affects TDVT tests:
|
Adding more info to this bug:
Some examples: SELECT 'Pat O''Hanrahan & <Matthew Eldridge]''' returns SELECT * FROM staples WHERE `Customer Name` = "Mary O'Rourke"; returns valid result, but SELECT * FROM staples WHERE `Customer Name` = 'Mary O\'Rourke'; yields empty result set. source=staples | WHERE `Customer Name` = "Mary O'Rourke"; returns valid data, but source=staples | WHERE `Customer Name` = 'Mary O\'Rourke'; doesn't.
|
Adding the following test to @Test
public void canBuildEscapedStringLiteral() {
assertEquals(
stringLiteral("O'Rourke"),
buildExprAst("'O\\'Rourke'")
);
} |
Tested and I think this is already fixed in #696:
|
Fix for escape characters is coming in Bit-Quill#159. It is a breaking change, so it is targeted to 3.x branch. |
* Added support of timestamp/date/time using curly brackets (#297) * added bracketed time/date/timestamp input, tests, and documentation Signed-off-by: Matthew Wells <[email protected]> * improved failing tests Signed-off-by: Matthew Wells <[email protected]> * simplified tests for checking for failure Signed-off-by: Matthew Wells <[email protected]> * fixed redundant tests and improved tests that should fail Signed-off-by: Matthew Wells <[email protected]> --------- Signed-off-by: Matthew Wells <[email protected]>
…ets (#1908) * Added support of timestamp/date/time using curly brackets (#1894) * Added support of timestamp/date/time using curly brackets (#297) * added bracketed time/date/timestamp input, tests, and documentation Signed-off-by: Matthew Wells <[email protected]> * improved failing tests Signed-off-by: Matthew Wells <[email protected]> * simplified tests for checking for failure Signed-off-by: Matthew Wells <[email protected]> * fixed redundant tests and improved tests that should fail Signed-off-by: Matthew Wells <[email protected]> --------- Signed-off-by: Matthew Wells <[email protected]> (cherry picked from commit 1a7134b) * fixed bad cherrypick merge conflict Signed-off-by: Matthew Wells <[email protected]> --------- Signed-off-by: Matthew Wells <[email protected]>
Describe the bug
Unable to escape characters for string literals
Or for query issues:
SELECT 'i\'m'
i\'m
Expected behavior
The result should be
i'm
Screenshots
The text was updated successfully, but these errors were encountered: