[SERVER-3480] Shell cannot access a collection named 'stats' Created: 26/Jul/11 Updated: 24/Oct/11 Resolved: 24/Oct/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Tyler Kennedy | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
In the mongo shell, it is currently not possible to access a collection named 'stats' by using db.stats or db['stats'] as it conflicts with the function .stats(). This is not an issue in the Python or other drivers. This is not, as far as I can tell, documented anywhere. Temporary workaround is to use db.getCollection('stats'). Potentially as another issue, db['stats'] should always use getCollection(). |
| Comments |
| Comment by Ian Whalen (Inactive) [ 24/Oct/11 ] |
|
Duplicate of |