Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-11775

$all with null handled differently in 2.4 and 2.5

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 2.5.3
    • Querying
    • ALL

    Description

      2.4 and 2.5 handle $all with a null differently

      Basic reproduction:

      >db.test.drop()
      >db.test.insert(

      {a:1}

      )
      >db.test.find({a: {$all: [null]}})

      2.4 will return the document, 2.5 will not.

      Tested on 2.4.8 and build from trunk on 11/18

      Attachments

        Activity

          People

            benety.goh@mongodb.com Benety Goh
            andrew.emil@10gen.com Andrew Emil
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: