From jdo-dev-return-8325-apmail-db-jdo-dev-archive=www.apache.org@db.apache.org Mon Oct 12 10:45:54 2009 Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 48700 invoked from network); 12 Oct 2009 10:45:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Oct 2009 10:45:53 -0000 Received: (qmail 51124 invoked by uid 500); 12 Oct 2009 10:45:53 -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 51112 invoked by uid 99); 12 Oct 2009 10:45:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Oct 2009 10:45:53 +0000 X-ASF-Spam-Status: No, hits=-10.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Oct 2009 10:45:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4FD63234C046 for ; Mon, 12 Oct 2009 03:45:31 -0700 (PDT) Message-ID: <1366923805.1255344331325.JavaMail.jira@brutus> Date: Mon, 12 Oct 2009 03:45:31 -0700 (PDT) From: "Guido Anzuoni (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Created: (JDO-643) avg return type MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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.