Return-Path: Delivered-To: apmail-cayenne-commits-archive@www.apache.org Received: (qmail 95915 invoked from network); 15 Jul 2010 18:58:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Jul 2010 18:58:17 -0000 Received: (qmail 85301 invoked by uid 500); 15 Jul 2010 18:58:17 -0000 Delivered-To: apmail-cayenne-commits-archive@cayenne.apache.org Received: (qmail 85283 invoked by uid 500); 15 Jul 2010 18:58:17 -0000 Mailing-List: contact commits-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list commits@cayenne.apache.org Received: (qmail 85275 invoked by uid 99); 15 Jul 2010 18:58:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jul 2010 18:58:17 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jul 2010 18:58:14 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6FIvqfI022934 for ; Thu, 15 Jul 2010 18:57:52 GMT Message-ID: <7264779.400341279220272646.JavaMail.jira@thor> Date: Thu, 15 Jul 2010 14:57:52 -0400 (EDT) From: "Andrus Adamchik (JIRA)" To: commits@cayenne.apache.org Subject: [jira] Closed: (CAY-1426) EJBQL: ESCAPE fails after positional parameter In-Reply-To: <7680038.18951273058286670.JavaMail.jira@thor> 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/CAY-1426?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrus Adamchik closed CAY-1426. -------------------------------- Assignee: Andrus Adamchik Fix Version/s: 3.0.1 3.1M1 Resolution: Fixed > EJBQL: ESCAPE fails after positional parameter > ---------------------------------------------- > > Key: CAY-1426 > URL: https://issues.apache.org/jira/browse/CAY-1426 > Project: Cayenne > Issue Type: Improvement > Components: Core Library > Affects Versions: 3.0RC3 > Reporter: Andrew Lindesay > Assignee: Andrus Adamchik > Priority: Minor > Fix For: 3.0.1, 3.1M1 > > Attachments: 0001-CAY-1426.patch, CAY-1426.-Fixed-incorrect-parsing-of-LIKE-ESCAPE-with-input-parameter.patch, unit-test-java-snippet.txt > > > The EJBQL specification allows for an escape character to be supplied for the generated SQL. For example, the following would be valid; > ...WHERE (((r.applicableTimestamp>=?1) AND (r.applicableTimestamp The EJBQL parser is presently failing; > ... 70 more > Caused by: org.apache.cayenne.ejbql.parser.ParseException: Encountered " "ESCAPE" "ESCAPE "" at line 1, column 130. > Was expecting: > ")" ... > > at org.apache.cayenne.ejbql.parser.EJBQL.generateParseException(EJBQL.java:9419) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.