Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-1857

Collection with - in name failed

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • None
    • None
    • None
    • mongodb-linux-x86_64-2.4.6
      Ubunt 12.04 LTS

    Description

      Due to this doc, collection with - in name is okay.
      http://docs.mongodb.org/manual/reference/limits/#Restriction%20on%20Collection%20Names

      But this is what I got:
      > db.salt-master.insert(

      {"name": "HVN"}

      )
      Wed Aug 28 12:15:04.378 ReferenceError: master is not defined
      > db.saltmaster.insert(

      {"name": "HVN"}

      )
      > db.saltmaster.find()

      { "_id" : ObjectId("521d875f383d0080ca077962"), "name" : "HVN" }

      So this maybe doc bug or core bug?

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            hvnsweeting HVN
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 25 weeks ago