[SERVER-492] when doing upsert with $filter, don't use $as new fields Created: 16/Dec/09 Updated: 12/Jul/16 Resolved: 16/Dec/09 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Write Ops |
| Affects Version/s: | None |
| Fix Version/s: | 1.3.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Eliot Horowitz (Inactive) | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Description |
|
> db.test.update( { name: 'ian', fruits: { $ne: 'apple' }}, { $push: { fruits: 'apple' }}, { upsert: true } ); |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 16/Dec/09 ] |
|
see http://github.com/mongodb/mongo/blob/master/jstests/update8.js |
| Comment by auto [ 16/Dec/09 ] |
|
Author: {'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}Message: when doing upsert, don't copy $ filters |