File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8822,7 +8822,7 @@ impl<'a> Parser<'a> {
88228822 let next_token = self . next_token ( ) ;
88238823 let pattern = match next_token. token {
88248824 Token :: SingleQuotedString ( s) => Ok ( s) ,
8825- _ => self . expected ( "single quoted string " , next_token) ,
8825+ _ => self . expected ( "ilike pattern " , next_token) ,
88268826 } ;
88278827 Some ( IlikeSelectItem { pattern : pattern? } )
88288828 } else {
Original file line number Diff line number Diff line change @@ -1633,7 +1633,7 @@ fn test_select_wildcard_with_ilike_double_quote() {
16331633 let res = snowflake ( ) . parse_sql_statements ( r#"SELECT * ILIKE "%id" FROM tbl"# ) ;
16341634 assert_eq ! (
16351635 res. unwrap_err( ) . to_string( ) ,
1636- "sql parser error: Expected single quoted string , found: \" %id\" "
1636+ "sql parser error: Expected ilike pattern , found: \" %id\" "
16371637 ) ;
16381638}
16391639
@@ -1642,7 +1642,7 @@ fn test_select_wildcard_with_ilike_number() {
16421642 let res = snowflake ( ) . parse_sql_statements ( r#"SELECT * ILIKE 42 FROM tbl"# ) ;
16431643 assert_eq ! (
16441644 res. unwrap_err( ) . to_string( ) ,
1645- "sql parser error: Expected single quoted string , found: 42"
1645+ "sql parser error: Expected ilike pattern , found: 42"
16461646 ) ;
16471647}
16481648
You can’t perform that action at this time.
0 commit comments