-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
Major - P3
-
None
-
Affects Version/s: 4.0.10
-
Component/s: Shell
-
None
-
Environment:Windows
-
ALL
-
None
-
None
-
None
-
None
-
None
-
None
-
None
MongoDB server version: 4.0.10
> db.createCollection("service-test-42_1-DocDetailsType")
{ "ok" : 1 }
> show collections
service-test-42_1-DocDetailsType
> db.service-test-42_1-DocDetailsType.drop()
2019-07-23T13:41:39.939+0300 E QUERY [js] SyntaxError: identifier starts immediately after numeric literal @(shell):1:16
May be linked with https://jira.mongodb.org/browse/SERVER-445
Workaround:
> db.getCollection("service-test-42_1-DocDetailsType").drop()
true
- duplicates
-
SERVER-445 Can't reference collection names beginning with an underscore in the mongo shell
-
- Closed
-