Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-245

dots allowed in field names when updating

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1
    • Affects Version/s: 1.11
    • Component/s: None
    • None
    • Environment:
      OS X 10.6.7, Python 2.6.1, PyMongo 1.11

      When saving a document for the first time, PyMongo correctly rejects documents whose keys contain dots (".").

      However, when updating a document (with either .save() or .update()), field names with dots are allowed through. Mongo 1.8.1 appears to store them fine, but it's impossible to query for documents using this field, since queries with dots in the spec field names are rejected (both by the mongo shell and PyMongo).

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            dcrosta Daniel Crosta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: