[CSHARP-47] Incorrectly resolved boolean expressions in linq projections Created: 27/Jun/10 Updated: 19/Oct/16 Resolved: 27/Jun/10 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Attila Kisko | Assignee: | Craig Wilson |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Client is built from git commit 3a68dc116f5e320709c8. class Foo [MongoAlias("ispublic")] public bool Public { get; set; } } The following query fails to produce results: var coll = db.GetCollection<Foo>("foo"); After db.setProfilingLevel(2): > db.system.profile.find() } } } reslen:57 bytes:41", "millis" : 0 } If i rewrite the query, it works properly: coll.Linq().Count(f => f.Public == true && f.Bar > 50); > db.system.profile.find() } } reslen:57 bytes:41", "millis" : 0 } |
| Comments |
| Comment by Craig Wilson [ 27/Jun/10 ] |
|
This has been fixed. |