-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 2.2.2
-
Component/s: JavaScript
-
None
-
Fully Compatible
-
ALL
-
This is peculiar:
~/main $ ./mongo MongoDB shell version: 2.3.1-pre- connecting to: test > t = db.b test.b > t.insert({x:102}) > x = t.findOne() { "_id" : ObjectId("50dc0ce9f5c263c5c9f56781"), "x" : 102 } > x.pack = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa > > t.save(x) > > t.find() { "_id" : ObjectId("50dc0ce9f5c263c5c9f56781"), "x" : 102, "pack" : "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" } > > x { "_id" : ObjectId("50dc0ce9f5c263c5c9f56781"), "x" : 102, "pack" : "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" } > delete x.pack true > > x { "_id" : ObjectId("50dc0ce9f5c263c5c9f56781"), "x" : 102 } > > t.save(x) > > t.find() { "_id" : ObjectId("50dc0ce9f5c263c5c9f56781"), "x" : 102, "pack" : null } >
as one would expect the field pack to have completely gone away.