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

Criteria sum should return zero if no rows found?

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Resolution: Done
    • None
    • 3.1.0
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: