[CSHARP-1241] Single and SingleOrDefaultAsync on IFindFluent shouldn't set the limit to 2 if it is already 1. Created: 15/Apr/15  Updated: 22/Apr/15  Resolved: 22/Apr/15

Status: Closed
Project: C# Driver
Component/s: API
Affects Version/s: 2.0
Fix Version/s: 2.1

Type: Bug Priority: Minor - P4
Reporter: Craig Wilson Assignee: Craig Wilson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

If the limit is already 1 in IFindFluent, changing the limit to 2 when Single or SingleOrDefault is used can cause an exception to be thrown.



 Comments   
Comment by Craig Wilson [ 22/Apr/15 ]

Author:

{u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}

Message: CSHARP-601: implemented an IQueryable provider for the new API.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/29ec3629cf8d3a4e6e26fe01758ba0e42db88797

Generated at Wed Feb 07 21:39:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.