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

$setOnInsert mods should not conflict with non-insert modifiers

    • Type: Icon: Bug Bug
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Write Ops
    • Query
    • ALL

      This command results in a conflict:

      db.test.update({_id:13},{$setOnInsert : {"name" : [null, "welt"]}, $set : {"name.0" : "wooorld"}}, { upsert: true });
      

            Votes:
            46 Vote for this issue
            Watchers:
            43 Start watching this issue

              Created:
              Updated:
              Resolved: