[SERVER-3988] should regex matching work with $pull? it doesn't. Created: 30/Sep/11 Updated: 11/Jul/16 Resolved: 19/Sep/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Write Ops |
| Affects Version/s: | None |
| Fix Version/s: | 2.5.3 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Dwight Merriman | Assignee: | Andrew Morrow (Inactive) |
| Resolution: | Done | Votes: | 1 |
| Labels: | $pull, regex | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
> t.find( {x:1}) { "_id" : ObjectId("4e8634b96c26412b2e1418b4"), "x" : 1, "y" : [ 2, 3, 4, "abc", "xyz" ] }> , {$pull:{y:3}}) ) { "_id" : ObjectId("4e8634b96c26412b2e1418b4"), "x" : 1, "y" : [ 2, 4, "abc", "xyz" ] }> , {$pull:{y:{$lt:3}}}) ) { "_id" : ObjectId("4e8634b96c26412b2e1418b4"), "x" : 1, "y" : [ 4, "abc", "xyz" ] }> t.update( {x:1}, {$pull:{y:/yz/}}) ) { "_id" : ObjectId("4e8634b96c26412b2e1418b4"), "x" : 1, "y" : [ 4, "abc", "xyz" ] } |
| Comments |
| Comment by auto [ 19/Sep/13 ] |
|
Author: {u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@10gen.com'}Message: |