-
Type: Bug
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: 2.0.1
-
Component/s: Write Ops
-
None
-
ALL
> db.test.findAndModify({"query": {"_id":1}, "update": {$set: {"test" : { "te$t" : true }}}, "upsert": true, "new": true}); Tue Dec 06 19:08:10 uncaught exception: findAndModifyFailed failed: "not okForStorage" > db.test.findAndModify({"query": {"_id":1}, "update": {$set: {"test" : { "te.t" : true }}}, "upsert": true, "new": true}); Tue Dec 06 19:08:15 uncaught exception: findAndModifyFailed failed: "not okForStorage" > db.test.findAndModify({"query": {"_id":1}, "update": {$set: {"test" : { "test" : true }}}, "upsert": true, "new": true}); { "_id" : 1, "test" : { "test" : true } } > db.test.findAndModify({"query": {"_id":1}, "update": {$set: {"test" : { "te$t" : true }}}, "upsert": true, "new": true}); { "_id" : 1, "test" : { "te$t" : true } } > db.test.findAndModify({"query": {"_id":1}, "update": {$set: {"test" : { "te.t" : true }}}, "upsert": true, "new": true}); { "_id" : 1, "test" : { "te.t" : true } }
- related to
-
SERVER-7557 Update doesn't support "$"s in the field (not at the start)
- Closed