Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 46152 invoked from network); 1 Feb 2007 01:19:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Feb 2007 01:19:28 -0000 Received: (qmail 3677 invoked by uid 500); 1 Feb 2007 01:19:32 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 3653 invoked by uid 500); 1 Feb 2007 01:19:32 -0000 Mailing-List: contact open-jpa-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: open-jpa-dev@incubator.apache.org Delivered-To: mailing list open-jpa-dev@incubator.apache.org Received: (qmail 3643 invoked by uid 99); 1 Feb 2007 01:19:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jan 2007 17:19:32 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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; Wed, 31 Jan 2007 17:19:25 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C98B77142B6 for ; Wed, 31 Jan 2007 17:19:05 -0800 (PST) Message-ID: <6542032.1170292745823.JavaMail.jira@brutus> Date: Wed, 31 Jan 2007 17:19:05 -0800 (PST) From: "David Wisneski (JIRA)" To: open-jpa-dev@incubator.apache.org Subject: [jira] Closed: (OPENJPA-27) SQL Parameter markers generated for literals causes DB2 SQL error SQLCODE -417(SQLSTATE 42609), 418(SQLSTATE 42610) In-Reply-To: <18595450.1156186753809.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-27?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] David Wisneski closed OPENJPA-27. --------------------------------- Resolution: Duplicate duplicate of OPENJPA-22 > SQL Parameter markers generated for literals causes DB2 SQL error SQLCODE -417(SQLSTATE 42609), 418(SQLSTATE 42610) > ------------------------------------------------------------------------------------------------------------------- > > Key: OPENJPA-27 > URL: https://issues.apache.org/jira/browse/OPENJPA-27 > Project: OpenJPA > Issue Type: Bug > Components: query > Reporter: Catalina Wei > > over usage of parameter markers for LITERALS causes DB2 SQL errors. > Literals in the JP query if generated 'as is' in the pushdown SQL, can avoid DB2 SQL errors. > Simple predicates caused DB2 SQL errors: > where substring(e.name, 1, 5) = 'Harry' > where mod(e.empid, 2) > 0 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.