@@ -13,16 +13,16 @@ use crate::control::state::SharedState;
1313use crate :: types:: TenantId ;
1414
1515/// Signal from constant-expression evaluation that a `/` or `%` reached a
16- /// zero divisor (nodedb issue #227) .
16+ /// zero divisor.
1717///
1818/// Kept local to this module — the procedural executor's constant folder is
1919/// a separate, sqlparser-based tree-walk evaluator with no dependency on
2020/// `nodedb_query` (whose own `EvalError::DivisionByZero`, from the
21- /// DataFusion-backed row-expression evaluator fixed under issue #216,
22- /// covers a different code path entirely). Every other historically
23- /// `None`-folding case (unknown identifiers, unsupported operators,
24- /// overflow, non-finite float results) is unaffected and keeps folding to
25- /// `Ok(None)` — see `try_eval_constant`, ` evaluate_to_value`.
21+ /// DataFusion-backed row-expression evaluator, covers a different code path
22+ /// entirely). Every other historically `None`-folding case (unknown
23+ /// identifiers, unsupported operators, overflow, non-finite float results)
24+ /// is unaffected and keeps folding to `Ok(None)` — see `try_eval_constant`,
25+ /// `evaluate_to_value`.
2626#[ derive( Debug , Clone , Copy , PartialEq , Eq , thiserror:: Error ) ]
2727enum ConstEvalError {
2828 #[ error( "division by zero" ) ]
@@ -127,7 +127,7 @@ pub async fn evaluate_to_value(
127127/// (unparseable input, unknown identifiers, unsupported operators,
128128/// overflow) — callers fold that to `Value::Null`, matching historical
129129/// behavior. Returns `Err(ConstEvalError::DivisionByZero)` only when
130- /// evaluation reaches a `/` or `%` with a zero divisor (nodedb issue #227) .
130+ /// evaluation reaches a `/` or `%` with a zero divisor.
131131fn try_eval_constant ( sql : & str ) -> Result < Option < nodedb_types:: Value > , ConstEvalError > {
132132 let trimmed = sql. trim ( ) ;
133133 let expr_str = if trimmed. to_uppercase ( ) . starts_with ( "SELECT " ) {
@@ -275,7 +275,7 @@ fn eval_binary_op(
275275mod tests {
276276 use super :: * ;
277277
278- // ── Division/modulo by zero (nodedb issue #227) ─────────────────────────
278+ // ── Division/modulo by zero ──────────────────── ─────────────────────────
279279
280280 #[ test]
281281 fn integer_division_by_zero_signals_error ( ) {
0 commit comments