-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
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).