[SERVER-4197] Not possible to use multiple $push statements in the same update() command Created: 02/Nov/11 Updated: 07/Mar/14 Resolved: 04/Nov/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Write Ops |
| Affects Version/s: | 1.8.4, 2.0.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Marc Bastien | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
all |
||
| Operating System: | ALL |
| Participants: |
| Description |
|
If an update() command contains multiple $push statements, only the last one will be executed. To reproduce: > db.test.drop() > db.test.update({_id:1}, {$push: {"array1":1}, $push:{"array2":"b"}}) |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 04/Nov/11 ] | |||||||||||||||
|
Wrong syntax
|