[SERVER-10832] Invoking the $mul update operator against a missing element yields 1, should yield 0 Created: 20/Sep/13  Updated: 23/Oct/13  Resolved: 23/Sep/13

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 2.5.3

Type: Bug Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

See discussion in SERVER-375 for details.

Docs will need to update to reflect the new semantics.



 Comments   
Comment by Andrew Morrow (Inactive) [ 23/Sep/13 ]

The documentation should be updated to reflect that applying $mul to a missing field is equivalent to setting that field to a zero of the same numeric type as the argument to $mul.

Comment by auto [ 20/Sep/13 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@10gen.com'}

Message: SERVER-10832 Use long long rather than int64_t in test to avoid builder ambiguity
Branch: master
https://github.com/mongodb/mongo/commit/761ebc17e7099314396e78baadd639cdb3101f02

Comment by auto [ 20/Sep/13 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@10gen.com'}

Message: SERVER-10832 Update $mul to return correctly typed zero when acting on a missing element
Branch: master
https://github.com/mongodb/mongo/commit/809f199116f4f23f786c92baa73af4bd3f036237

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