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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 4.0.10
    • Fix Version/s: None
    • Component/s: Shell
    • Labels:
      None
    • Environment:
      Windows
    • Operating System:
      ALL

      Description

      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
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: