sqlite3-parser: separate boxed SelectInner struct

This commit is contained in:
Jussi Saurio
2025-02-09 12:54:30 +02:00
parent f75aca67bb
commit 40a8dc14cd
5 changed files with 44 additions and 35 deletions

View File

@@ -525,14 +525,14 @@ multiselect_op(A) ::= INTERSECT. {A = CompoundOperator::Intersect;}
oneselect(A) ::= SELECT distinct(D) selcollist(W) from(X) where_opt(Y)
groupby_opt(P). {
A = OneSelect::Select{ distinctness: D, columns: W, from: X, where_clause: Y,
group_by: P, window_clause: None };
A = OneSelect::Select(Box::new(SelectInner{ distinctness: D, columns: W, from: X, where_clause: Y,
group_by: P, window_clause: None }));
}
%ifndef SQLITE_OMIT_WINDOWFUNC
oneselect(A) ::= SELECT distinct(D) selcollist(W) from(X) where_opt(Y)
groupby_opt(P) window_clause(R). {
A = OneSelect::Select{ distinctness: D, columns: W, from: X, where_clause: Y,
group_by: P, window_clause: Some(R) };
A = OneSelect::Select(Box::new(SelectInner{ distinctness: D, columns: W, from: X, where_clause: Y,
group_by: P, window_clause: Some(R) }));
}
%endif