[SERVER-1040] positional operator and $set with an indexed field, update fails with error: can't append to array using string field name Created: 21/Apr/10 Updated: 07/Mar/14 Resolved: 16/Aug/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Write Ops |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | michael haraburda | Assignee: | Aaron Staple |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
win7 x64 |
||
| Participants: |
| Description |
|
Wed Apr 21 22:34:00 Mongo DB : starting : pid = 0 port = 27333 dbpath = d:/mongodb/data master = 0 slave = 0 64-bit > db.test.drop() , {id: 2, x: [8,9,10]}]}) , {$set: {'a.$.x': [1,1,1]}}) , { "id" : 2, "x" : [ 8, 9, 10 ] }] } ) , {$set: {'a.$.x': [1,2,2]}}) ) { "nIndexesWas" : 2, "ok" : 1 }> db.test.update( {'a.id': 1}, {$set: {'a.$.x': [6,6,7]}}) , { "id" : 2, "x" : [ 8, 9, 10 ] }] } |
| Comments |
| Comment by michael haraburda [ 19/Aug/10 ] |
|
I can confirm it works for me now as well after an upgrade to the latest... thanks. |
| Comment by auto [ 16/Aug/10 ] |
|
Author: {'login': 'astaple', 'name': 'Aaron', 'email': 'aaron@10gen.com'}Message: |