Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1457

Group doesn't handle NumberLong

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.7.1
    • Affects Version/s: 1.5.5
    • Component/s: None
    • None
    • ALL

      > 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
      }

            Assignee:
            aaron Aaron Staple
            Reporter:
            kbanker Kyle Banker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: