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

dots allowed in field names when updating

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.11
    • Fix Version/s: 2.1
    • Component/s: None
    • Labels:
      None
    • Environment:
      OS X 10.6.7, Python 2.6.1, PyMongo 1.11
    • # Replies:
      5
    • Last comment by Customer:
      true

      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

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                7 years, 12 weeks, 3 days ago
                Date of 1st Reply: