upsert doesn't create new obj correctly with array criteria

XMLWordPrintableJSON

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

      If you do an upsert with an array as the criteria, the criteria isn't included in the new obj:

      > db.foo.update(

      {x:[5,6]}

      ,

      {y:2}

      ,true)
      > db.foo.find()

      { "_id" : ObjectId("4c839d3b5a41d8ff2bdde378"), "y" : 2 }

            Assignee:
            Unassigned
            Reporter:
            Kristina Chodorow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: