Skip to content

Commit f7d6322

Browse files
committed
Code review comments
1 parent d5ebce4 commit f7d6322

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/dialect/snowflake.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -511,15 +511,7 @@ impl Dialect for SnowflakeDialect {
511511

512512
fn is_table_factor(&self, kw: &Keyword, parser: &mut Parser) -> bool {
513513
match kw {
514-
Keyword::LIMIT
515-
if matches!(
516-
parser.peek_token().token,
517-
Token::Number(_, _) | Token::Placeholder(_)
518-
) =>
519-
{
520-
false
521-
}
522-
514+
Keyword::LIMIT if peek_for_limit_options(parser) => false,
523515
_ => !RESERVED_KEYWORDS_FOR_TABLE_FACTOR.contains(kw),
524516
}
525517
}

tests/sqlparser_snowflake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4515,4 +4515,4 @@ fn test_snowflake_identifier_function() {
45154515

45164516
snowflake().verified_stmt("GRANT ROLE IDENTIFIER('AAA') TO USER IDENTIFIER('AAA')");
45174517
snowflake().verified_stmt("REVOKE ROLE IDENTIFIER('AAA') FROM USER IDENTIFIER('AAA')");
4518-
}
4518+
}

0 commit comments

Comments
 (0)