database icon indicating copy to clipboard operation
database copied to clipboard

Aggregations functions return type

Open natocTo opened this issue 8 years ago • 3 comments

  • bug report? yes
  • feature request? no
  • version: 3.0.0-alpha

Description

Selection aggregations function have return type int but should be able to return null or int.

Steps To Reproduce

max() min() on empty table atc.

natocTo avatar Feb 03 '17 22:02 natocTo

Or I can call aggregation on string column. $selection->min('myStringColumn')

adaamz avatar Feb 03 '17 23:02 adaamz

Can you send PR?

dg avatar Feb 03 '17 23:02 dg

Actually I am not sure what is right if it also works with strings atc. Remove return type completely?

natocTo avatar Feb 04 '17 08:02 natocTo