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

Filter builder.And(<emptyFilter>,<emptyFilter>) renders incorrectly

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.4.3
    • Affects Version/s: 2.4.2
    • Component/s: API, Operations
    • None

      Quick note. This problem arose in an upgrade from 2.2 to 2.4.2.

      When doing the following:

      SomeMethod
        var filt1 = Builders<Thing>.Filter.Empty;
        var filt2 = Builders<Thing>.Filter.Empty;
        var filter = Builders<Thing>.Filter.And(filt1,filt2);
      

      The rendered "filter" from above is an empty (and illegal) $and:

      {[]}

      in version 2.2, this would render as empty.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            sallgeud Chad Kreimendahl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: