Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 42951 invoked from network); 6 Jan 2011 21:21:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Jan 2011 21:21:10 -0000 Received: (qmail 77235 invoked by uid 500); 6 Jan 2011 21:21:10 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 77227 invoked by uid 99); 6 Jan 2011 21:21:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jan 2011 21:21:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jan 2011 21:21:09 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p06LKnTk028998 for ; Thu, 6 Jan 2011 21:20:49 GMT Message-ID: <25581361.197951294348849324.JavaMail.jira@thor> Date: Thu, 6 Jan 2011 16:20:49 -0500 (EST) From: "Craig L Russell (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Commented: (JDO-643) avg return type MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JDO-643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=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.