Cannot drop collection with characters like "_" and "-" .

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 4.0.10
    • Component/s: Shell
    • None
    • Environment:
      Windows
    • ALL
    • None
    • 3
    • 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
      

              Assignee:
              Danny Hatcher (Inactive)
              Reporter:
              NIKOLAY LOGINOV
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: