Skip to content

Commit cdfd75f

Browse files
committed
Code review comments
1 parent 2760d56 commit cdfd75f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/dialect/snowflake.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,7 @@ impl Dialect for SnowflakeDialect {
319319

320320
// `FETCH` can be considered an alias as long as it's not followed by `FIRST`` or `NEXT`
321321
// which would give it a different meanings, for example: `SELECT 1 FETCH FIRST 10 ROWS` - not an alias
322-
Keyword::FETCH
323-
if parser.peek_keyword(Keyword::FIRST) || parser.peek_keyword(Keyword::NEXT) =>
322+
Keyword::FETCH if parser.peek_one_of_keywords(&[Keyword::FIRST, Keyword::NEXT]).is_some() =>
324323
{
325324
false
326325
}

0 commit comments

Comments
 (0)