[SERVER-3311] Issue saving a document in the shell when the document contains a reference with the element [$db] Created: 21/Jun/11 Updated: 12/Jul/16 Resolved: 22/Jun/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | 1.9.0 |
| Fix Version/s: | 1.9.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Steve Francia | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
The following code results in this error. db.sellers.find().forEach(function(seller) { db.sellers.save(seller); }); uncaught exception: field names cannot start with $ [$db] I have signed the contributor agreement and issued a pull request for the patch to resolve this issue. It affects versions mongo 1.8 and higher. |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 22/Jun/11 ] |
|
Thanks! |