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

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

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      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

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

              Created:
              Updated:
              Resolved: