-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.5.8
-
Component/s: Querying
-
None
-
Query
-
Fully Compatible
-
ALL
In MongoDB 3.4.4 with latest PyMongo, this raises an error:
from pymongo import MongoClient db = MongoClient().test db.collection.insert({'_id': 1, 'hello': 'world'}) db.collection.update({'hello': 'world'}, {'_id': 1, 'hello': 'world', 'a.b': 'c'})
The server returns:
{'index': 0, 'code': 57, 'errmsg': u"The dotted field 'a.b' in 'a.b' is not valid for storage."}
In the latest nightly (commit 6fe7250) on macOS, this script succeeds and updates the document. The collection now contains this document:
{ "_id" : 1, "hello" : "world", "a.b" : "c" }
- is duplicated by
-
SERVER-32250 v3.6 $setOnInsert may create objects with dots in field names
- Closed
- is related to
-
SERVER-24174 Inconsistent rule for storing dotted field names
- Closed
-
PYTHON-1291 Test Failure - test_*_with_invalid_keys (test_collection.TestCollection)
- Closed
-
SERVER-29342 CollectionShardingState to support oplog event StartRangeDeletion
- Closed