File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -2854,7 +2854,8 @@ impl<'a> Parser<'a> {
28542854 fn parse_duckdb_struct_literal(&mut self) -> Result<Expr, ParserError> {
28552855 self.expect_token(&Token::LBrace)?;
28562856
2857- let fields = self.parse_comma_separated(Self::parse_duckdb_dictionary_field)?;
2857+ let fields =
2858+ self.parse_comma_separated0(Self::parse_duckdb_dictionary_field, Token::RBrace)?;
28582859
28592860 self.expect_token(&Token::RBrace)?;
28602861
Original file line number Diff line number Diff line change @@ -11288,6 +11288,8 @@ fn test_dictionary_syntax() {
1128811288 ) ;
1128911289 }
1129011290
11291+ check ( "{}" , Expr :: Dictionary ( vec ! [ ] ) ) ;
11292+
1129111293 check (
1129211294 "{'Alberta': 'Edmonton', 'Manitoba': 'Winnipeg'}" ,
1129311295 Expr :: Dictionary ( vec ! [
You can’t perform that action at this time.
0 commit comments