Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-2678

Criteria sum should return zero if no rows found?

    • Type: Icon: Task Task
    • Resolution: Done
    • 3.1.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Currently the "sum" criteria (and maybe others) returns nil if no rows are found. Does it make more sense for it to return zero instead?

            Assignee:
            Unassigned Unassigned
            Reporter:
            johnnyshields Johnny Shields
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: