diff --git a/lib/src/sparql/eval.rs b/lib/src/sparql/eval.rs index b4acac0b..e119ee5b 100644 --- a/lib/src/sparql/eval.rs +++ b/lib/src/sparql/eval.rs @@ -3011,7 +3011,13 @@ fn put_pattern_value( tuple: &mut EncodedTuple, ) -> Option<()> { match selector { - PatternValue::Constant(_) => Some(()), + PatternValue::Constant(c) => { + if *c == value { + Some(()) + } else { + None + } + } PatternValue::Variable(v) => { if let Some(old) = tuple.get(*v) { if value == *old {