Skip to content

Commit 8e2edfe

Browse files
committed
revert back to with and without checking
1 parent 2b1d5ca commit 8e2edfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,8 @@ impl Parser {
447447
)?,
448448
};
449449
let with_count = self.parse_keyword("WITH");
450-
if !with_count {
451-
self.expect_keyword("WITHOUT")?;
450+
if !with_count && !self.parse_keyword("WITHOUT") {
451+
self.expected("either WITH or WITHOUT in LISTAGG", self.peek_token())?;
452452
}
453453
self.expect_keyword("COUNT")?;
454454
Some(ListAggOnOverflow::Truncate { filler, with_count })

0 commit comments

Comments
 (0)