Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 83711 invoked from network); 13 Jun 2007 17:07:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jun 2007 17:07:53 -0000 Received: (qmail 60501 invoked by uid 500); 13 Jun 2007 17:07:56 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 60480 invoked by uid 500); 13 Jun 2007 17:07:56 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 60468 invoked by uid 99); 13 Jun 2007 17:07:56 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2007 10:07:56 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2007 10:07:51 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6D8DB714187 for ; Wed, 13 Jun 2007 10:07:31 -0700 (PDT) Message-ID: <29086885.1181754451445.JavaMail.jira@brutus> Date: Wed, 13 Jun 2007 10:07:31 -0700 (PDT) From: "CG Monroe (JIRA)" To: torque-dev@db.apache.org Subject: [jira] Created: (TORQUE-96) Can not use * or ? in LIKE clauses MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Can not use * or ? in LIKE clauses ---------------------------------- Key: TORQUE-96 URL: https://issues.apache.org/jira/browse/TORQUE-96 Project: Torque Issue Type: Bug Components: Runtime Affects Versions: 3.3-RC3, 3.3 Reporter: CG Monroe Priority: Minor If you have a ? or * in a like criteria, they get replaced with "_" and "%" in the SqlExpression class. However, this causes problems if you want to search for these characters. If you try to escape them with a \, the SQL generated is invalid for some DB's (Like MS SQL). This causes an SQLException to be thrown with text like: Invalid escape sequence. Valid characters after ESC are: an ESC pair, underscore, percent sign My memory is that % and _ are the SQL standard wild card/match characters. So, is the bug here that since ? and * are non-standard they should not be processed? If for some reason they need to be processed, do we go down the road of having a Torque escape character so that these characters can be searched? But this leads to possibly requiring stuff like "\\\\" in criterias to get an escaped \\ to the SQL parser so that single \ can be passed. This can be very confusing and would need to be documented correctly somewhere. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org