From 28439efd097b692ab6fd23e1bcb72260a3acdbd0 Mon Sep 17 00:00:00 2001 From: bit-aloo Date: Thu, 21 Aug 2025 20:07:40 +0530 Subject: [PATCH] make offset and limit Expr --- core/translate/plan.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/core/translate/plan.rs b/core/translate/plan.rs index eba50ce89..99519ec28 100644 --- a/core/translate/plan.rs +++ b/core/translate/plan.rs @@ -154,8 +154,8 @@ pub enum Plan { CompoundSelect { left: Vec<(SelectPlan, ast::CompoundOperator)>, right_most: SelectPlan, - limit: Option, - offset: Option, + limit: Option, + offset: Option, order_by: Option>, }, Delete(DeletePlan), @@ -292,9 +292,9 @@ pub struct SelectPlan { /// all the aggregates collected from the result columns, order by, and (TODO) having clauses pub aggregates: Vec, /// limit clause - pub limit: Option, + pub limit: Option, /// offset clause - pub offset: Option, + pub offset: Option, /// query contains a constant condition that is always false pub contains_constant_false_condition: bool, /// the destination of the resulting rows from this plan. @@ -378,9 +378,9 @@ pub struct DeletePlan { /// order by clause pub order_by: Vec<(Box, SortOrder)>, /// limit clause - pub limit: Option, + pub limit: Option, /// offset clause - pub offset: Option, + pub offset: Option, /// query contains a constant condition that is always false pub contains_constant_false_condition: bool, /// Indexes that must be updated by the delete operation. @@ -394,8 +394,8 @@ pub struct UpdatePlan { pub set_clauses: Vec<(usize, Box)>, pub where_clause: Vec, pub order_by: Vec<(Box, SortOrder)>, - pub limit: Option, - pub offset: Option, + pub limit: Option, + pub offset: Option, // TODO: optional RETURNING clause pub returning: Option>, // whether the WHERE clause is always false