-
Notifications
You must be signed in to change notification settings - Fork 601
fix: mysql backslash escaping #373
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
Conversation
Pull Request Test Coverage Report for Build 1613258541Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
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.
Thank you for the contribution @vasilev-alex ! This PR looks close
e212004
to
0be2f3a
Compare
018a4e7
to
8b04b40
Compare
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.
Looks great -- thank you @vasilev-alex
@@ -176,19 +178,36 @@ fn parse_quote_identifiers() { | |||
} | |||
} | |||
|
|||
#[test] | |||
fn parse_unterminated_escape() { | |||
let sql = r#"SELECT 'I\'m not fine\'"#; |
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.
👍
let expr = expr_from_projection(only(&value.projection)); | ||
assert_eq!( | ||
*expr, | ||
Expr::Value(Value::SingleQuotedString("I'm fine".to_string())) |
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.
👍
Addresses this issue #362
Works only when a raw string provided as input