db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guido Anzuoni (JIRA)" <j...@apache.org>
Subject [jira] Created: (JDO-643) avg return type
Date Mon, 12 Oct 2009 10:45:31 GMT
avg return type
---------------

                 Key: JDO-643
                 URL: https://issues.apache.org/jira/browse/JDO-643
             Project: JDO
          Issue Type: Bug
          Components: specification
    Affects Versions: JDO 2 maintenance release 2
            Reporter: Guido Anzuoni


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message