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

db.version command overloads any query to a collection called version

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      We have a function called db.version

      If you create a collection called version you cannot query it via shell using db.version.X as the version function overloads the reference to the collection.

      Most prominent when working with config.version

      Workaround is to use db.getCollection("version").X

      Attachments

        Activity

          People

            Unassigned Unassigned
            david.hows David Hows
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: