Query: incorrect results when comparing result of FirstOrDefault of empty collection of ints to 0 #15864
Labels
area-query
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
punted-for-3.0
type-bug
Milestone
query:
we expect no results, but getting a result back. This is because the collection returns null and null semantics matches it as not 0.
For FirstOrDefault on non-nullable scalar we should probably wrap the call in a Coalesce(default)
The text was updated successfully, but these errors were encountered: