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

$set a value to null makes a collection unusable until the database is restarted (invalid parameter: expected an object)

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      python driver or shell

      > db.foo.find()

      {"_id" : "f86b90079a8f8ae183fa4b9b" , "a" : 5}

      > db.foo.update(

      {"a": 5}

      , {"$set": {"b": null}})
      > db.foo.find()
      error:

      {"$err" : "invalid parameter: expected an object"}

            Assignee:
            aaron Aaron Staple
            Reporter:
            mike Michael Dirolf
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: