-
Type: Bug
-
Resolution: Won't Fix
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Shell
-
None
-
ALL
For example the config.version collection in sharding config is not accessible from the shell since the version function is returned.
We should check if the collection exists before returning the function:
> use config
switched to db config
> db["version"].find()
Wed Mar 16 08:23:22 TypeError: db.version.find is not a function (shell):1
> db["version"]
function ()
exported 1 records
- is duplicated by
-
SERVER-3879 Mongo allows for creation of collections named the same as functions, it's confusing
- Closed