Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-752

Inconsistent function\boolean handling in Linq queries

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.9
    • 1.8.1
    • None
    • None
    • Windows, C#, .Net 4.5, Visual Studio 2012

    Description

      It seems like although the QueryTranslator works as intended, there is a problem with the Serialization Info finder when trying to process the following:

      strongResult = strongCollection.Where(o => o.Name.StartsWith("Sat") == true).ToList();

      If we omit the == true part, then the query works:

      strongResult = strongCollection.Where(o => o.Name.StartsWith("Sat")).ToList();

      Integration tests reproducing the problem can be found here:

      https://github.com/Roysvork/MongoDbStartsWithBugTest

      You must have an instance of MongoDb running on localhost with the default port for the tests to run, of course this can be changed easily

      Attachments

        Activity

          People

            craig.wilson@mongodb.com Craig Wilson
            roysvork Pete Smith
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: