Where(...).Any(...) combination not working correctly on IRavenQueryable #17558
Closed
ThierryRosseau
started this conversation in
General
Replies: 2 comments
-
Looks like a bug, yes, see: https://issues.hibernatingrhinos.com/issue/RavenDB-21589/Parenthesis-missing-when-combining-Where-and-Any |
Beta Was this translation helpful? Give feedback.
0 replies
-
Fixed in #17568 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently using RavenDB 5.4.111 and encountered the following.
If i query an collection with a Where() that contains || (or) then the following Any(predicate) method wil not include parentheses.
The Queryable version returns both
false
for q1 and q2 as expected.But the IRavenQueryable returns
true
for r1 andfalse
for r2 witch is very weird.As you can see from the captured queries the first one has no parentheses for the Where predicate and Any predicate. Therefore the logic of the operators is different and returns an incorrect result.
Beta Was this translation helpful? Give feedback.
All reactions