Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 76841 invoked from network); 21 Jul 2005 20:18:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Jul 2005 20:18:15 -0000 Received: (qmail 41263 invoked by uid 500); 21 Jul 2005 20:18:11 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 41100 invoked by uid 500); 21 Jul 2005 20:18:10 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 40996 invoked by uid 99); 21 Jul 2005 20:18:09 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_FAIL 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; Thu, 21 Jul 2005 13:17:57 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 17A41D2 for ; Thu, 21 Jul 2005 22:17:54 +0200 (CEST) Message-ID: <349572567.1121977074095.JavaMail.jira@ajax.apache.org> Date: Thu, 21 Jul 2005 22:17:54 +0200 (CEST) From: "David Van Couvering (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-20) LIKE handles strings with control characters incorrectly. In-Reply-To: <1683177649.1096485110863.JavaMail.apache@nagoya> 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/DERBY-20?page=comments#action_12316408 ] David Van Couvering commented on DERBY-20: ------------------------------------------ This issue came up with EJBQL testing of the app server here at Sun. I am including some comments from the folks doing the testing (Sailaja Rao). Hopefully this will help us resolve this item The below EJBQL query > when run does not return any dataset. When it is supposed to return the > following as possible matches : > > Ber%in > Ber%lin > > *SELECT OBJECT(le) FROM LIKEESCAPE le WHERE le.name LIKE 'Ber\%%' ESCAPE > '\' * > > where the dataset contains the values : > > insert into LIKEESCAPE values('1', 'Berlin'); > insert into LIKEESCAPE values('2', 'Ber_in'); > insert into LIKEESCAPE values('3', 'Ber\in'); > insert into LIKEESCAPE values('4', 'Ber%in'); > insert into LIKEESCAPE values('5', 'Berin'); > insert into LIKEESCAPE values('6', 'Ber%lin'); Here is the SQL statement, when the test is executed. I am also attaching the server.log file. [#|2005-07-20T17:43:13.031-0800|FINE|TestAbbrevProductName9.0|javax.enterprise.resource.jdo.sqlstore.sql|_ThreadID=15;|SQL statement