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

dots allowed in field names when updating

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 1.11
    • 2.1
    • None
    • None
    • OS X 10.6.7, Python 2.6.1, PyMongo 1.11

    Description

      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).

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: