Expand handling of LIMIT 1, 2 handling to include sqlite (#1447)

This commit is contained in:
Joshua Warner 2024-09-30 10:40:07 -07:00 committed by GitHub
parent ce2686a169
commit 1e0460a7df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 61 additions and 24 deletions

View file

@ -8739,7 +8739,7 @@ impl<'a> Parser<'a> {
offset = Some(self.parse_offset()?)
}
if dialect_of!(self is GenericDialect | MySqlDialect | ClickHouseDialect)
if self.dialect.supports_limit_comma()
&& limit.is_some()
&& offset.is_none()
&& self.consume_token(&Token::Comma)