{a: {$in: [null]}} broken

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.5.5
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      > db.foo.insert({})
      > db.foo.find(

      {a:null}

      )

      { "_id" : ObjectId("4bfd5078deec96b27dbb35d7") }

      > db.foo.find({a:{$in:[null]}})
      >

      > db.foo.ensureIndex(

      {a:1}

      )
      > db.foo.find(

      {a:null}

      )

      { "_id" : ObjectId("4bfd5078deec96b27dbb35d7") }

      > db.foo.find({a:{$in:[null]}})

      { "_id" : ObjectId("4bfd5078deec96b27dbb35d7") }

              Assignee:
              Aaron Staple (Inactive)
              Reporter:
              Mathias Stearn
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: