[SERVER-12992] Error message for $mul with non-numeric type is confusing Created: 03/Mar/14  Updated: 03/Mar/14  Resolved: 03/Mar/14

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 2.6.0-rc0
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Jonathan Abrahams Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: 26qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-12945 v2.6.0-rc0 update $mul uses "incremen... Closed
Related
related to SERVER-12932 Fix grammar errors in update Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

var qa380_db = db.getSiblingDB("qa380");
var coll = qa380_db.foo;
 
coll.update({n : 0}, {$mul: {n : '' }})

Error message: "Cannot increment with non-numeric argument:"
Should be: "Cannot apply $mul to a value of non-numeric type."

Participants:

 Description   

Based on testing (QA-380) in 2.5 and 2.6 there were many changes to the WriteResult. The error message for $mul is incorrect.



 Comments   
Comment by Jonathan Abrahams [ 03/Mar/14 ]

This pulls out the first case listed in SERVER-12932

Generated at Thu Feb 08 03:30:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.