sqlite3-parser: box the having clause in GroupBy

This commit is contained in:
Jussi Saurio
2025-02-08 18:08:54 +02:00
parent 2a82091cb3
commit 781aa3b5d6
3 changed files with 3 additions and 3 deletions

View File

@@ -731,7 +731,7 @@ nulls(A) ::= . {A = None;}
%type groupby_opt {Option<GroupBy>}
groupby_opt(A) ::= . {A = None;}
groupby_opt(A) ::= GROUP BY nexprlist(X) having_opt(Y). {A = Some(GroupBy{ exprs: X, having: Y });}
groupby_opt(A) ::= GROUP BY nexprlist(X) having_opt(Y). {A = Some(GroupBy{ exprs: X, having: Y.map(Box::new) });}
%type having_opt {Option<Expr>}
having_opt(A) ::= . {A = None;}