[CSHARP-41] Bug in the query translator Created: 04/Jun/10  Updated: 05/Jun/10  Resolved: 05/Jun/10

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

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


 Description   

I spotted a bug in the query translator (MongoQueryTranslator.cs). The code from line 288 to 294 should be similar to the one for field access, it should be:

case MemberTypes.Property:
var propertyInfo = (PropertyInfo)m.Member;
valueStack.Push(propertyInfo.GetValue(((ConstantExpression)m.Expression).Value, null));
break;

Thanks
Flavien



 Comments   
Comment by Craig Wilson [ 05/Jun/10 ]

The linq provider has been completely rewritten. This bug does not exist in the new linq provider.

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