-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 2.1.0
-
Component/s: Aggregation Framework
-
None
-
Environment:uname -a
Linux 3.0.0-16-generic #29-Ubuntu SMP Tue Feb 14 12:48:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
> db.serverBuildInfo()
{
"version" : "2.1.0",
"gitVersion" : "d674c681170337e3dfc34ae796b06fdde5ac05dd",
"sysInfo" : "Linux ip-10-110-9-236 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41",
"versionArray" : [
2,
1,
0,
0
],
"bits" : 64,
"debug" : false,
"maxBsonObjectSize" : 16777216,
"ok" : 1
}
uname -a Linux 3.0.0-16-generic #29-Ubuntu SMP Tue Feb 14 12:48:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux > db.serverBuildInfo() { "version" : "2.1.0", "gitVersion" : "d674c681170337e3dfc34ae796b06fdde5ac05dd", "sysInfo" : "Linux ip-10-110-9-236 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41", "versionArray" : [ 2, 1, 0, 0 ], "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "ok" : 1 }
-
Linux
> db.test.save(
{a:1,b:2})
> db.test.save(
)
> db.test.find()
{ "_id" : ObjectId("4f6ba4a90a07b1052bfdb5e0"), "a" : 1, "b" : 2 } { "_id" : ObjectId("4f6ba4b40a07b1052bfdb5e1"), "a" : 3, "b" : 4 }> db.test.aggregate({$project:{a:0}})
{
"result" : [
,
{ "_id" : ObjectId("4f6ba4b40a07b1052bfdb5e1"), "_id" : ObjectId("4f6ba4b40a07b1052bfdb5e1"), "b" : 4 } ],
"ok" : 1
}
Repeated attribute is obviously not possible, so this seems very minor, but is a bit unexpected to see and object come back like this.