mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-09-03 20:50:33 +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 {
|
match ch {
|
||||||
'\'' => {
|
'\'' => {
|
||||||
chars.next(); // consume
|
chars.next(); // consume
|
||||||
let escaped_quote = chars.peek()
|
let escaped_quote = chars.peek().map(|c| *c == '\'').unwrap_or(false);
|
||||||
.map(|c| *c == '\'')
|
|
||||||
.unwrap_or(false);
|
|
||||||
if escaped_quote {
|
if escaped_quote {
|
||||||
s.push('\'');
|
s.push('\'');
|
||||||
chars.next();
|
chars.next();
|
||||||
|
|
|
@ -159,7 +159,9 @@ fn parse_escaped_single_quote_string_predicate() {
|
||||||
Some(SQLBinaryExpr {
|
Some(SQLBinaryExpr {
|
||||||
left: Box::new(SQLIdentifier("salary".to_string())),
|
left: Box::new(SQLIdentifier("salary".to_string())),
|
||||||
op: NotEq,
|
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,
|
ast.selection,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue