@@ -247,7 +247,7 @@ WhereClause: Box<ast::Expr> = { "WHERE" <ExprQuery> }
247
247
// GROUP BY //
248
248
// ------------------------------------------------------------------------------ //
249
249
GroupClause: Box<ast::GroupByExpr> = {
250
- "GROUP" "BY" <strategy: GroupStrategy> <keys:CommaSep<GroupKey>> <group_as_alias:GroupAlias?> => {
250
+ "GROUP" <strategy: GroupStrategy> "BY" <keys:CommaSep<GroupKey>> <group_as_alias:GroupAlias?> => {
251
251
Box::new(ast::GroupByExpr{
252
252
strategy,
253
253
key_list: ast::GroupKeyList{ keys },
@@ -257,10 +257,11 @@ GroupClause: Box<ast::GroupByExpr> = {
257
257
}
258
258
#[inline]
259
259
GroupStrategy: ast::GroupingStrategy = {
260
- <all:"ALL"?> => {
261
- match all {
262
- Some(_) => ast::GroupingStrategy::GroupFull,
263
- None => ast::GroupingStrategy::GroupPartial,
260
+ "ALL" => ast::GroupingStrategy::GroupFull,
261
+ <partial:"PARTIAL"?> => {
262
+ match partial {
263
+ Some(_) => ast::GroupingStrategy::GroupPartial,
264
+ None => ast::GroupingStrategy::GroupFull,
264
265
}
265
266
}
266
267
}
@@ -880,6 +881,7 @@ extern {
880
881
"OR" => lexer::Token::Or,
881
882
"ORDER" => lexer::Token::Order,
882
883
"OUTER" => lexer::Token::Outer,
884
+ "PARTIAL" => lexer::Token::Partial,
883
885
"PIVOT" => lexer::Token::Pivot,
884
886
"PRESERVE" => lexer::Token::Preserve,
885
887
"RIGHT" => lexer::Token::Right,
0 commit comments