From 74262042040ffef407ffe516c11d967fde89ef32 Mon Sep 17 00:00:00 2001 From: Jussi Saurio Date: Sat, 8 Feb 2025 18:07:38 +0200 Subject: [PATCH] sqlite3-parser: box Following and Preceding in FrameBound --- vendored/sqlite3-parser/src/parser/ast/mod.rs | 4 ++-- vendored/sqlite3-parser/src/parser/parse.y | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vendored/sqlite3-parser/src/parser/ast/mod.rs b/vendored/sqlite3-parser/src/parser/ast/mod.rs index ffeafea07..f8534e9a3 100644 --- a/vendored/sqlite3-parser/src/parser/ast/mod.rs +++ b/vendored/sqlite3-parser/src/parser/ast/mod.rs @@ -1872,9 +1872,9 @@ pub enum FrameBound { /// `CURRENT ROW` CurrentRow, /// `FOLLOWING` - Following(Expr), + Following(Box), /// `PRECEDING` - Preceding(Expr), + Preceding(Box), /// `UNBOUNDED FOLLOWING` UnboundedFollowing, /// `UNBOUNDED PRECEDING` diff --git a/vendored/sqlite3-parser/src/parser/parse.y b/vendored/sqlite3-parser/src/parser/parse.y index af16eefa2..0f17415e4 100644 --- a/vendored/sqlite3-parser/src/parser/parse.y +++ b/vendored/sqlite3-parser/src/parser/parse.y @@ -1454,9 +1454,9 @@ frame_bound_s(A) ::= UNBOUNDED PRECEDING. {A = FrameBound::UnboundedPreceding;} frame_bound_e(A) ::= frame_bound(X). {A = X;} frame_bound_e(A) ::= UNBOUNDED FOLLOWING. {A = FrameBound::UnboundedFollowing;} -frame_bound(A) ::= expr(X) PRECEDING. { A = FrameBound::Preceding(X); } +frame_bound(A) ::= expr(X) PRECEDING. { A = FrameBound::Preceding(Box::new(X)); } frame_bound(A) ::= CURRENT ROW. { A = FrameBound::CurrentRow; } -frame_bound(A) ::= expr(X) FOLLOWING. { A = FrameBound::Following(X); } +frame_bound(A) ::= expr(X) FOLLOWING. { A = FrameBound::Following(Box::new(X)); } %type frame_exclude_opt {Option} frame_exclude_opt(A) ::= . {A = None;}