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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial - P5
    • Resolution: Fixed
    • 2.6.0-rc0
    • 2.6.0-rc1
    • Write Ops
    • None
    • Fully Compatible

    Description

      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".

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: