Skip to content

Commit

Permalink
fix tests:
Browse files Browse the repository at this point in the history
Signed-off-by: TennyZhuang <zty0826@gmail.com>
  • Loading branch information
TennyZhuang committed Mar 30, 2024
1 parent b05cb06 commit b43d8af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sqlparser/tests/sqlparser_common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ fn parse_ilike() {
expr: Box::new(Expr::Identifier(Ident::new_unchecked("name"))),
negated,
pattern: Box::new(Expr::Value(Value::SingleQuotedString("%a".to_string()))),
escape_char: Some('^'),
escape_char: Some(EscapeChar::escape('^')),
},
select.selection.unwrap()
);
Expand Down Expand Up @@ -777,7 +777,7 @@ fn parse_similar_to() {
expr: Box::new(Expr::Identifier(Ident::new_unchecked("name"))),
negated,
pattern: Box::new(Expr::Value(Value::SingleQuotedString("%a".to_string()))),
escape_char: Some('\\')
escape_char: Some(EscapeChar::escape('\\')),
},
select.selection.unwrap()
);
Expand All @@ -793,7 +793,7 @@ fn parse_similar_to() {
expr: Box::new(Expr::Identifier(Ident::new_unchecked("name"))),
negated,
pattern: Box::new(Expr::Value(Value::SingleQuotedString("%a".to_string()))),
escape_char: Some('\\')
escape_char: Some(EscapeChar::escape('\\')),
})),
select.selection.unwrap()
);
Expand Down

0 comments on commit b43d8af

Please sign in to comment.