mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-12-23 11:12:51 +00:00
Expand handling of LIMIT 1, 2 handling to include sqlite (#1447)
This commit is contained in:
parent
ce2686a169
commit
1e0460a7df
8 changed files with 61 additions and 24 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue