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

Unable to drop a collection with "@" in name

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • None
    • Linux

    Description

      I am trying to drop some collections, but It's not working. Below are the commands:
      <
      rs-ds4564584:PRIMARY> show collections
      ^12345'"\'\");|]*%00{%0d%0a<%00>%bf%27'ðŸ'©_undefined_omcandle^
      sqlmongomigration-temp-collection-12345
      to@example.com>
      bcc:052608.8_64.8.a364e.1@bxss.me_omcandle
      to@example.com>
      bcc:052608.8_68.8.a364e.1@bxss.me_omcandle
      to@example.com>
      bcc:052608.8_70.8.a364e.1@bxss.me_omcandle
      to@example.com>
      bcc:052608.8_72.8.a364e.1@bxss.me_omcandle

      I am trying to remove all collections having "@" in thier name, but on executing drop() command it is returning false.

      rs-ds4564584:PRIMARY> db['to@example.com>'].drop()
      false

      Please help me on how I can delete all such collections.

      Attachments

        Activity

          People

            daniel.hatcher@mongodb.com Danny Hatcher (Inactive)
            sp-suresh Suresh L. Prajapati
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: