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

v2.6.0-rc0 update $mul uses "increment" in error messages

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 2.6.0-rc1
    • Affects Version/s: 2.6.0-rc0
    • Component/s: Write Ops
    • Labels:
      None
    • Fully Compatible

      The steps:

      > db.test.update({x : 1}, {$mul : {x : null}}, {upsert : true})
      WriteResult({
              "nMatched" : 0,
              "nUpserted" : 0,
              "nModified" : 0,
              "writeError" : {
                      "code" : 2,
                      "errmsg" : "Cannot increment with non-numeric argument: {x: null}"
              }
      })
      

      The error message uses "increment". It should be "multiply".

            Assignee:
            scotthernandez Scott Hernandez (Inactive)
            Reporter:
            nightroman Roman Kuzmin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: