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

Errors could be better on upsert

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Cannot Reproduce
    • Icon: Major - P3 Major - P3
    • None
    • 1.6.3
    • Shell
    • None
    • OS X

    Description

      > db.x.update(

      {'_id': 1}

      ,

      {'a':1}

      , upsert=true)
      fails silently

      > db.x.update(

      {'_id': 1}

      ,

      {'_id': 1, 'a':1}

      , upsert=true)
      works as expected

      I also had something along these lines that caused an assert failure, but I can't repro it now.

      Attachments

        Activity

          People

            Unassigned Unassigned
            krave Kushal Dave
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: