Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 33089 invoked from network); 17 Oct 2005 09:02:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Oct 2005 09:02:08 -0000 Received: (qmail 71673 invoked by uid 500); 17 Oct 2005 09:02:08 -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 71662 invoked by uid 99); 17 Oct 2005 09:02:08 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Oct 2005 02:02:07 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 0C241590 for ; Mon, 17 Oct 2005 11:01:47 +0200 (CEST) Message-ID: <1341423933.1129539707048.JavaMail.jira@ajax.apache.org> Date: Mon, 17 Oct 2005 11:01:47 +0200 (CEST) From: "Erik Bengtson (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Commented: (JDO-176) JPOX fails when a query calls String.matches In-Reply-To: <735851295.1128614147906.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/JDO-176?page=comments#action_12332214 ] Erik Bengtson commented on JDO-176: ----------------------------------- should the jdo implementation raise an exception or is it valid to query for '*First' (literally)? > JPOX fails when a query calls String.matches > -------------------------------------------- > > Key: JDO-176 > URL: http://issues.apache.org/jira/browse/JDO-176 > Project: JDO > Type: Bug > Components: tck20 > Reporter: Michael Watzek > Assignee: Erik Bengtson > > JPOX fails when a query calls String.matches. This bug may be reproduced applying patch JDO-159. The SQL generation of the following query is incorrect: > SELECT FROM org.apache.jdo.tck.pc.company.Person WHERE firstname.matches('*First') > The LIKE clause of the generated SQL statement contains '*First'. This is a bug. It should contain '%First'. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira