[SERVER-1457] Group doesn't handle NumberLong Created: 21/Jul/10  Updated: 12/Jul/16  Resolved: 09/Sep/10

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 1.5.5
Fix Version/s: 1.7.1

Type: Bug Priority: Minor - P4
Reporter: Kyle Banker Assignee: Aaron Staple
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

> db.runCommand({group: {ns: 'foo', '$reduce': "function(doc, prev)

{ prev.count += 1; }

", initial:

{count: new NumberLong(0)}

>
{
"retval" : [

{ "count" : "[object Object]11" }

],
"count" : 2,
"keys" : 1,
"ok" : 1
}



 Comments   
Comment by auto [ 09/Sep/10 ]

Author:

{'login': 'astaple', 'name': 'Aaron', 'email': 'aaron@10gen.com'}

Message: SERVER-1457 comment
http://github.com/mongodb/mongo/commit/df463cc254a5d2ba89d4f152617cd31596a6c222

Comment by auto [ 09/Sep/10 ]

Author:

{'login': 'astaple', 'name': 'Aaron', 'email': 'aaron@10gen.com'}

Message: SERVER-1457 make deep copy of NumberLong properly for group
http://github.com/mongodb/mongo/commit/7c3493d6520b78c2a733555d80bce559a50edd00

Generated at Thu Feb 08 02:57:04 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.