[SERVER-7474] Upsert With Modifiers In Find Throws Exception Created: 25/Oct/12 Updated: 07/Mar/14 Resolved: 29/Oct/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Write Ops |
| Affects Version/s: | 2.0.0, 2.2.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | William Watson | Assignee: | Andrew Emil (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
centos, mongo command-line client, mongo ruby driver |
||
| Operating System: | Linux |
| Participants: |
| Description |
|
This may affect more versions, but I've only tested on 2.2.0 and 2.0.0. Trying to do an upsert with a $not modifier in the find:
Works for the first insert. But the second always fails with the following exception, no matter what $not is set to:
|
| Comments |
| Comment by William Watson [ 29/Oct/12 ] | ||
| ||
| Comment by William Watson [ 29/Oct/12 ] | ||
|
Well outside of the fact that your query is completely wrong (syntax error, $not can only be used as a meta operator which I did not know), it did lead us in the right direction so thanks! | ||
| Comment by Eliot Horowitz (Inactive) [ 29/Oct/12 ] | ||
|
Problem is that the query is invalid. , "value.tx : { "$not": "5d"}} |