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

Criteria sum should return zero if no rows found?

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.1.0
    • Component/s: None
    • Labels:
      None

      Description

      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?

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: