Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 12658 invoked from network); 17 Aug 2007 22:14:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Aug 2007 22:14:52 -0000 Received: (qmail 39536 invoked by uid 500); 17 Aug 2007 22:14:49 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 39501 invoked by uid 500); 17 Aug 2007 22:14:49 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 39492 invoked by uid 99); 17 Aug 2007 22:14:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Aug 2007 15:14:49 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Aug 2007 22:14:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E3CF8714159 for ; Fri, 17 Aug 2007 15:14:30 -0700 (PDT) Message-ID: <16257687.1187388870922.JavaMail.jira@brutus> Date: Fri, 17 Aug 2007 15:14:30 -0700 (PDT) From: "Catalina Wei (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-321) DB2 ABS Casting problem In-Reply-To: <3978606.1187388037065.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Catalina Wei updated OPENJPA-321: --------------------------------- Attachment: OPENJPA-321.patch Fix DB2 Casting problem for ABS, LENGTH, UPPER, LOWER, TRIM, SQRT. > DB2 ABS Casting problem > ----------------------- > > Key: OPENJPA-321 > URL: https://issues.apache.org/jira/browse/OPENJPA-321 > Project: OpenJPA > Issue Type: Bug > Components: jdbc > Affects Versions: 0.9.7 > Reporter: Kevin Sutter > Assignee: Teresa Kan > Fix For: 1.0.0 > > Attachments: OPENJPA-321.patch > > > Via the JPA TCK running against DB2, we found the following problem with casting and the ABS function: > Instead of generating: > ..WHERE (CAST(t0.TOTALPRICE AS DOUBLE) > CAST(ABS(?) AS DOUBLE)) > We need to generate: > ..WHERE (CAST(t0.TOTALPRICE AS DOUBLE) > ABS(CAST(? AS DOUBLE)) > While doing a bit more investigation we are finding similar problems with other function expressions such as MOD and TRIM. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.