[CSHARP-948] Take() in Where().OrderBy().Take().Any() not working. Created: 07/Apr/14 Updated: 20/Jan/16 Resolved: 27/Apr/15 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Linq |
| Affects Version/s: | 1.8.3 |
| Fix Version/s: | 2.1 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Ruslan Sologub | Assignee: | Craig Wilson |
| Resolution: | Done | Votes: | 1 |
| Labels: | driver | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Both MongoDB and consumer app run on Windows 7 x64 |
||
| Epic Link: | Rewrite Linq |
| Description |
|
I found a quite specific case, when var repository = new MongoRepository(); var id = new Guid("08d12048-7851-bc17-259f-9b16589f0d15"); |
| Comments |
| Comment by Githook User [ 26/Apr/15 ] |
|
Author: {u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}Message: |
| Comment by Craig Wilson [ 07/Apr/14 ] |
|
Hi Ruslan, Took me a while to figure this out (although I haven't reproduced). If this is NOT throwing an error, then the bug is that it should be. This particular query isn't currently possible in MongoDB using the query engine because you have 2 predicates, one before a Take() and one after. This will be possible after I'm going to assign a fixVersion of 3.0 and lump it in with the other Linq tickets that are dependent on Thanks for the report. |