Details
-
Bug
-
Status: Closed
-
Minor - P4
-
Resolution: Fixed
-
2.5.2
-
None
-
None
-
Fully Compatible
-
ALL
Description
The following message should say "Cannot apply $mul ..." rather than "$inc"
$mul was introduced in 2.5.2.
> db.foo.save({_id:1, a:"one", b:2, c:3})
|
> db.foo.update({_id:1}, {$mul: {a: 2.25}})
|
> db.getLastError()
|
Cannot apply $inc to a value of non-numeric type. {_id: 1.0} has the field 'a' of non-numeric type String
|
Attachments
Issue Links
- duplicates
-
SERVER-12350 Failed update with $mul errors with reference to $inc
-
- Closed
-