From 395344a5358ff0ebe58f6081e84f148e74333466 Mon Sep 17 00:00:00 2001 From: Tpt Date: Tue, 13 Jun 2023 17:43:33 +0200 Subject: [PATCH] Fixes || evaluation when all alternatives are false It should return false and not fail... --- lib/src/sparql/eval.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/sparql/eval.rs b/lib/src/sparql/eval.rs index a9a6abbd..8c94853d 100644 --- a/lib/src/sparql/eval.rs +++ b/lib/src/sparql/eval.rs @@ -959,7 +959,7 @@ impl SimpleEvaluator { .map(|i| self.expression_evaluator(i, stat_children)) .collect::>(); Rc::new(move |tuple| { - let mut error = true; + let mut error = false; for child in children.iter() { match child(tuple).and_then(|v| to_bool(&v)) { Some(true) => return Some(true.into()),