Details
-
Improvement
-
Status: Closed
-
Minor - P4
-
Resolution: Gone away
-
None
-
None
-
None
-
1.6.3 / 64bit
-
Query
-
Fully Compatible
Description
This is good:
> db.test.insert({"x.y":1})
|
Fri Oct 22 13:08:29 uncaught exception: can't have . in field names [x.y]
|
This was not good for a user to stumble on:
> db.test.insert({"x":1})
|
> db.test.update({"x":1}, {"$set":{"y":{"z.z":1}}})
|
not okForStorage
|
I wish the $set error also explained the problem with the dot in the key name.
Attachments
Issue Links
- is related to
-
SERVER-3730 Illegal key names allowed in $set command
-
- Closed
-
- related to
-
SERVER-7557 Update doesn't support "$"s in the field (not at the start)
-
- Closed
-
-
SERVER-30575 Please add escaping convention for dot and dollar signs!
-
- Backlog
-