Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-1291

[Update] : the result "updatedExisting" is not correct

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 2.12.1
    • Write Operations
    • None

    Description

      I am using MongoDB 2.6.1 and mongo java driver 2.12.1.

      When I use function “db.update(arg..)” to update a nonexistent document, the result is “

      { "serverUsed" : "localhost:27017" , "ok" : 1 , "n" : 0 , "updatedExisting" : true}

      ”, the “updatedExisting” is true , this is incorrect.

      When I use mongo java driver 2.11.3, the result is correct.

      Attachments

        Activity

          People

            ross@mongodb.com Ross Lawley
            Rambo Dong [X]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: