[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 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: |
| Comment by auto [ 20/Sep/13 ] |
|
Author: {u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@10gen.com'}Message: |