Return-Path: X-Original-To: apmail-cayenne-commits-archive@www.apache.org Delivered-To: apmail-cayenne-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B7B9F8C94 for ; Thu, 15 Sep 2011 08:36:32 +0000 (UTC) Received: (qmail 22406 invoked by uid 500); 15 Sep 2011 08:36:32 -0000 Delivered-To: apmail-cayenne-commits-archive@cayenne.apache.org Received: (qmail 22381 invoked by uid 500); 15 Sep 2011 08:36:32 -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 22374 invoked by uid 99); 15 Sep 2011 08:36:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Sep 2011 08:36:32 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Sep 2011 08:36:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E44699AEC8 for ; Thu, 15 Sep 2011 08:36:08 +0000 (UTC) Date: Thu, 15 Sep 2011 08:36:08 +0000 (UTC) From: "Dzmitry Kazimirchyk (JIRA)" To: commits@cayenne.apache.org Message-ID: <1589975600.30083.1316075768931.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CAY-1210) mysql does not use index for case insensitive searches 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-1210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13105210#comment-13105210 ] Dzmitry Kazimirchyk commented on CAY-1210: ------------------------------------------ Committed the changes which will enable us to do this. Anyway, we still need to configure Jenkins to work with our new version naming pattern: http://markmail.org/message/m4x3lxtcoxlsi6r2 > mysql does not use index for case insensitive searches > ------------------------------------------------------ > > Key: CAY-1210 > URL: https://issues.apache.org/jira/browse/CAY-1210 > Project: Cayenne > Issue Type: Improvement > Components: Database integration > Reporter: Ari Maniatis > Assignee: Ari Maniatis > Fix For: 3.1 (final) > > Attachments: case-insensitive-search.patch, case-insensitive-search.patch > > > When performing a case insensitive search Cayenne spits out SQL which looks like this > SELECT .... WHERE upper(name) LIKE upper("fred") > This prevents any index being used for the search. Since mysql already performed case insensitive searches on text fields we need to suppress the 'upper' functions being used in these situations. All searches on these fields are already case insensitive. > http://dev.mysql.com/doc/refman/5.0/en/case-sensitivity.html -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira