Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Done
-
3.2.7
-
None
-
None
-
ALL
Description
`$rename` cannot rename fields with dots (.) in their names:
A collections like:
> db.test.find()
|
{ "_id" : ObjectId("578ec46e39b3c19fbbeb2264"), "a.b" : 1 }
|
{ "_id" : ObjectId("578ec46e39b3c19fbbeb2262"), "a.b" : 2 }
|
>
|
won't get updated with:
> db.test.update({}, { $rename : { "a.b" : "ab" }}, false, true);
|
WriteResult({ "nMatched" : 2, "nUpserted" : 0, "nModified" : 0 })
|
>
|
> db.test.find()
|
{ "_id" : ObjectId("578ec46e39b3c19fbbeb2264"), "a.b" : 1 }
|
{ "_id" : ObjectId("578ec46e39b3c19fbbeb2262"), "a.b" : 2 }
|
>
|
Attachments
Issue Links
- related to
-
SERVER-15029 $rename modifier uses incorrect dotted source path
-
- Closed
-
-
SERVER-20171 Invalid "cannot use the part to traverse the element"
-
- Closed
-
-
TOOLS-1335 mongoimport imports fields with dots (.) from JSON
-
- Closed
-