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

Possible bug found via unit tests

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 1.4
    • 1.4
    • None
    • Mono 2.10.8, Mongo 1.8.2

    Description

      In running the unit tests under CSharpDriver-2010, I encountered 1 failure at DriverOnlineTests => Linq => SelectQueryTests => TestWhereTripleAnd.

      The test involves the query provided below. It fails asserting that the result count is 2, because the result count of this query for me is 0. The issue seems to be with the redundancy of using $gte on the same field. If I remove either "c.X >= 0" or "c.X >= 1", the query properly returns 2 results. Additionally, if I add "!c.B", the query properly returns 2 results, and so there does not seem to be an issue with Triple And in and of itself.

      var query = from c in _collection.AsQueryable<C>()
      where c.X >= 0 && c.X >= 1 && c.Y == 11
      select c;

      I tried searching for this. My apologies if this issue is redundant or already solved.

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            rposky Robert Poskevich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: