[SERVER-8906] db.version command overloads any query to a collection called version Created: 08/Mar/13 Updated: 01/Apr/13 Resolved: 08/Mar/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | David Hows | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Description |
|
We have a function called db.version If you create a collection called version you cannot query it via shell using db.version.X as the version function overloads the reference to the collection. Most prominent when working with config.version Workaround is to use db.getCollection("version").X |