Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
JDO 2 maintenance release 2 (2.2)
-
None
Description
Aggregate type specification at page 175 claims that avg(expression) return type is the same of the enclosed expression.
This is wrong from a strictly mathematical point of view.
In fact, if you select an avg on an int field member the result is truncated.
The result type should always be double.