Snowflake: support for object constants (#1223)

This commit is contained in:
Joey Hain 2024-04-26 11:01:33 -07:00 committed by GitHub
parent 2490034948
commit deaa6d8151
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 81 additions and 1 deletions

View file

@ -1192,7 +1192,7 @@ impl<'a> Parser<'a> {
self.prev_token();
Ok(Expr::Value(self.parse_value()?))
}
Token::LBrace if dialect_of!(self is DuckDbDialect | GenericDialect) => {
Token::LBrace if self.dialect.supports_dictionary_syntax() => {
self.prev_token();
self.parse_duckdb_struct_literal()
}