Skip to content

Commit

Permalink
limit the access chain supported dialect
Browse files Browse the repository at this point in the history
  • Loading branch information
goldmedal committed Dec 4, 2024
1 parent 0355290 commit 1de9b21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ impl<'a> Parser<'a> {
self.parse_compound_expr(expr, fields)
}
}
Token::LBracket => {
Token::LBracket if dialect_of!(self is PostgreSqlDialect | DuckDbDialect | GenericDialect | ClickHouseDialect | BigQueryDialect) => {
let _ = self.consume_token(&Token::LBracket);
let ident = Expr::Identifier(w.to_ident(w_span));
let mut fields = vec![];
Expand Down

0 comments on commit 1de9b21

Please sign in to comment.