You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Guido Anzuoni (JIRA)" <ji...@apache.org> on 2009/10/12 12:45:31 UTC
[jira] Created: (JDO-643) avg return type
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.
[jira] Updated: (JDO-643) avg return type
Posted by "Michael Bouschen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JDO-643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Bouschen updated JDO-643:
---------------------------------
Assignee: Michael Bouschen
Fix Version/s: JDO 3 maintenance release 1
> 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
> Assignee: Michael Bouschen
> Fix For: JDO 3 maintenance release 1
>
>
> 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.