mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-09-01 03:37:21 +00:00
run cargo fmt
This commit is contained in:
parent
80dccf6885
commit
80aceba630
2 changed files with 4 additions and 4 deletions
|
@ -462,9 +462,7 @@ impl<'a> Tokenizer<'a> {
|
|||
match ch {
|
||||
'\'' => {
|
||||
chars.next(); // consume
|
||||
let escaped_quote = chars.peek()
|
||||
.map(|c| *c == '\'')
|
||||
.unwrap_or(false);
|
||||
let escaped_quote = chars.peek().map(|c| *c == '\'').unwrap_or(false);
|
||||
if escaped_quote {
|
||||
s.push('\'');
|
||||
chars.next();
|
||||
|
|
|
@ -159,7 +159,9 @@ fn parse_escaped_single_quote_string_predicate() {
|
|||
Some(SQLBinaryExpr {
|
||||
left: Box::new(SQLIdentifier("salary".to_string())),
|
||||
op: NotEq,
|
||||
right: Box::new(SQLValue(Value::SingleQuotedString("Jim's salary".to_string())))
|
||||
right: Box::new(SQLValue(Value::SingleQuotedString(
|
||||
"Jim's salary".to_string()
|
||||
)))
|
||||
}),
|
||||
ast.selection,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue