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

upsert doesn't create new obj correctly with array criteria

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • ALL

    Description

      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 }

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: