Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 51096 invoked from network); 28 Jan 2006 04:45:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Jan 2006 04:45:06 -0000 Received: (qmail 58029 invoked by uid 500); 28 Jan 2006 04:45:04 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 57993 invoked by uid 500); 28 Jan 2006 04:45:04 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 57982 invoked by uid 99); 28 Jan 2006 04:45:04 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jan 2006 20:45:04 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [131.228.20.96] (HELO mgw-ext04.nokia.com) (131.228.20.96) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jan 2006 20:45:03 -0800 Received: from esebh105.NOE.Nokia.com (esebh105.ntc.nokia.com [172.21.138.211]) by mgw-ext04.nokia.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k0S4fvo6030178 for ; Sat, 28 Jan 2006 06:41:58 +0200 Received: from esebh002.NOE.Nokia.com ([172.21.138.77]) by esebh105.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 28 Jan 2006 06:44:34 +0200 Received: from [127.0.0.1] ([172.18.87.78]) by esebh002.NOE.Nokia.com with Microsoft SMTPSVC(5.0.2195.6881); Sat, 28 Jan 2006 06:44:33 +0200 Message-ID: <43DAF6AE.90002@nokia.com> Date: Fri, 27 Jan 2006 20:44:30 -0800 From: Robert Dietrick User-Agent: Thunderbird 1.5 (Windows/20051025) MIME-Version: 1.0 To: Apache Torque Users List Subject: case insensitive queries Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 28 Jan 2006 04:44:33.0376 (UTC) FILETIME=[8896EE00:01C623C5] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I'm having difficulties getting a portion of my WHERE clause to be case insensitive with Oracle, and I'm wondering if this problem's been solved already. I've tried Criteria.setIgnoreCase(true), which forces all parts of the WHERE clause to ignore case, and I've tried Criterion.setIgnoreCase(true), which does absolutely nothing (does this work with other databases???). I've also tried the custom route: Criteria.add(columnName, "UPPER("+columnName+") = " + someValue.toUpperCase()). But this is inherently dangerous when the value (someValue) is coming from an end user. (May allow users to execute arbitrary SQL.) What I want is something which results in the left half being converted to upper case and the right half still using a bind variable: UPPER(columnName) = ? Anyone know if this is possible? I'm using the latest version (3.2). Thanks. -rob --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org