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".
- is duplicated by
-
SERVER-12992 Error message for $mul with non-numeric type is confusing
-
- Closed
-