Skip to content

Commit

Permalink
fix: pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
HiranmayaGundu committed Apr 20, 2024
1 parent 1823d05 commit 5449d01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8780,7 +8780,7 @@ impl<'a> Parser<'a> {
} else {
None
};
let opt_exclude = if !opt_ilike.is_some()
let opt_exclude = if opt_ilike.is_none()
&& dialect_of!(self is GenericDialect | DuckDbDialect | SnowflakeDialect)
{
self.parse_optional_select_item_exclude()?
Expand Down
2 changes: 1 addition & 1 deletion tests/sqlparser_snowflake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1642,7 +1642,7 @@ fn test_select_wildcard_with_ilike_number() {
let res = snowflake().parse_sql_statements(r#"SELECT * ILIKE 42 FROM tbl"#);
assert_eq!(
res.unwrap_err().to_string(),
"sql parser error: Expected literal string, found: 42"
"sql parser error: Expected single quoted string, found: 42"
);
}

Expand Down

0 comments on commit 5449d01

Please sign in to comment.