Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 3064 invoked from network); 27 Oct 2009 17:45:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Oct 2009 17:45:23 -0000 Received: (qmail 28817 invoked by uid 500); 27 Oct 2009 17:45:22 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 28754 invoked by uid 500); 27 Oct 2009 17:45:22 -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 28744 invoked by uid 99); 27 Oct 2009 17:45:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Oct 2009 17:45:22 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Oct 2009 17:45:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6397C234C045 for ; Tue, 27 Oct 2009 10:44:59 -0700 (PDT) Message-ID: <426731359.1256665499396.JavaMail.jira@brutus> Date: Tue, 27 Oct 2009 17:44:59 +0000 (UTC) From: "Donald Woods (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-1308) shouldn't always use CAST with UPPER and LOWER for DB2 In-Reply-To: <1300702485.1253283916015.JavaMail.jira@brutus> 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/OPENJPA-1308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Donald Woods updated OPENJPA-1308: ---------------------------------- Affects Version/s: 2.0.0-M3 Fix Version/s: (was: 2.0.0) 2.0.0-M4 1.3.0 > shouldn't always use CAST with UPPER and LOWER for DB2 > ------------------------------------------------------ > > Key: OPENJPA-1308 > URL: https://issues.apache.org/jira/browse/OPENJPA-1308 > Project: OpenJPA > Issue Type: Bug > Components: sql > Affects Versions: 1.0.3, 1.2.1, 2.0.0-M2, 2.0.0-M3 > Environment: DB2 > Reporter: B.J. Reed > Assignee: Michael Dick > Priority: Minor > Fix For: 1.0.4, 1.2.2, 1.3.0, 2.0.0-M4 > > Attachments: OPENJPA-1308-1.0.x.patch, OPENJPA-1308-1.2.x.patch, OPENJPA-1308-trunk.patch > > > Using DB2, when a user uses the UPPER or LOWER function, the field is automatically CAST to a varchar. It would be nice if OpenJPA were a little smarter and only used CAST when necessary. Using the CAST causes any indexes not to be used so performance won't be what it should. > I saw some other DB2 functions that also are always CAST, so we may need to improve these also. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.