[jira] Commented: (JDO-643) avg return type

2011-01-06 Thread Michael Bouschen (JIRA)

[ 
https://issues.apache.org/jira/browse/JDO-643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12978509#action_12978509
 ] 

Michael Bouschen commented on JDO-643:
--

I agree there is no good reason to differ from JPA here, which means 
avg(expressin) would alwas return Double.

I think the patch JDO-643.patch is good to be checked in.


 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

 Attachments: JDO-643.patch


 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] Commented: (JDO-643) avg return type

2011-01-06 Thread Craig L Russell (JIRA)

[ 
https://issues.apache.org/jira/browse/JDO-643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12978512#action_12978512
 ] 

Craig L Russell commented on JDO-643:
-

I agree. With the patch, this should now be just a specification (and RI) issue.

 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

 Attachments: JDO-643.patch


 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.