Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 5970 invoked from network); 7 Jan 2011 17:42:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Jan 2011 17:42:09 -0000 Received: (qmail 91446 invoked by uid 500); 7 Jan 2011 17:42:09 -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 91438 invoked by uid 99); 7 Jan 2011 17:42:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jan 2011 17:42:08 +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; Fri, 07 Jan 2011 17:42:07 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p07Hfjn8017679 for ; Fri, 7 Jan 2011 17:41:45 GMT Message-ID: <9117515.215921294422105280.JavaMail.jira@thor> Date: Fri, 7 Jan 2011 12:41:45 -0500 (EST) From: "Michael Bouschen (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Updated: (JDO-643) avg return type MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JDO-643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Bouschen updated JDO-643: --------------------------------- Component/s: tck > avg return type > --------------- > > Key: JDO-643 > URL: https://issues.apache.org/jira/browse/JDO-643 > Project: JDO > Issue Type: Bug > Components: specification, tck > 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.