[CSHARP-2012] != operator works incorrect for internal collection Created: 06/Jul/17 Updated: 28/Oct/23 Resolved: 15/Jan/19 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Linq |
| Affects Version/s: | None |
| Fix Version/s: | 2.8.0 |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | anatolii petruchok | Assignee: | Dmitry Lukyanov (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
C# linqu quwery |
||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Minor Change | ||||||||||||||||
| Description |
|
I have collection with element(let it be only one in collection)
1.
returns 0 elements. Inncorrect!
returns 0 elements. Inncorrect!
Even throws error. Inncorrect! 4.
returns the element. Correct. Previous 2 should works in same way
returns the element. Correct. And also it the same syntaxes as in 1st. Only difference between 5 and 1 is "==" vs "!=". Note GetAllFor() returns IQueryable<of the class> |
| Comments |
| Comment by Githook User [ 15/Jan/19 ] |
|
Author: {'username': 'dmitry-lukyanov', 'email': 'dmitry_lukyanov@epam.com', 'name': 'Dmitry Lukyanov'}Message: |
| Comment by Dmitry Lukyanov (Inactive) [ 21/Dec/18 ] |
|
The 3rd example from this ticket has been moved into the ticket Please let me know if you have questions about the new ticket. |
| Comment by Craig Wilson [ 06/Jul/17 ] |
|
Thanks for reporting Anatolii, Sorry you are having trouble. The Any operator is interesting to get right with MongoDB. There are a few tickets related to Any already. I'll link them here. Craig |