[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: File db_version.js    
Issue Links:
Duplicate
duplicates SERVER-3879 Mongo allows for creation of collecti... Closed
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


Generated at Thu Feb 08 03:18:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.