Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-42346

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

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.0.10
    • Component/s: Shell
    • None
    • Environment:
      Windows
    • ALL

      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:
            daniel.hatcher@mongodb.com Danny Hatcher (Inactive)
            Reporter:
            sharkerr@yandex.ru NIKOLAY LOGINOV
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: