-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
None
-
Affects Version/s: 1.1.3
-
Component/s: Shell
-
None
-
Environment:linux
1. according to the MongoDB FAQ, collection names can begin with an underscore, but in mongo shell it results in
MongoDB shell version: 1.1.3 > db._a.insert({a: 1}); Sun Nov 29 14:19:16 JS Error: TypeError: db._a has no properties (shell):0 > db._a.findOne(); Sun Nov 29 14:19:36 JS Error: TypeError: db._a has no properties (shell):0 while > db.a.insert({a: 1}); > db.a.findOne(); { "_id" : ObjectId("4b1274ce2da8fd0af74f3a1c"), "a" : 1 }
2. When inserting document with PHP driver it works
3. I also tried mongodb-linux-i686-2009-11-29 nightly with the same result
- is duplicated by
-
SERVER-42346 Cannot drop collection with characters like "_" and "-" .
- Closed
-
SERVER-56055 "indexOf is not a function" error for collection name "1000" in shell
- Closed