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

Query.Or should return { } if any subquery is { }

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.8
    • 1.7
    • None

    Description

      [Robert Stam edited the summary 2013-01-02]

      See attached test (TestMethod2)

      int count = (from e in collection.AsQueryable<Entity>()
      where true || e.Name == "Name_22"
      select e).Count();

      returns 1 record, 100 expected

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            joe.enzminger Joe Enzminger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: