Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 7476 invoked from network); 11 Jun 2007 07:41:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jun 2007 07:41:46 -0000 Received: (qmail 74459 invoked by uid 500); 11 Jun 2007 07:41:48 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 74435 invoked by uid 500); 11 Jun 2007 07:41:48 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 74426 invoked by uid 99); 11 Jun 2007 07:41:48 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2007 00:41:48 -0700 X-ASF-Spam-Status: No, hits=2.4 required=10.0 tests=FORGED_YAHOO_RCVD,MAILTO_TO_SPAM_ADDR,SPF_HELO_PASS,SPF_PASS,WEIRD_QUOTING X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2007 00:41:42 -0700 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1HxeWf-00086B-VF for users@jackrabbit.apache.org; Mon, 11 Jun 2007 00:41:21 -0700 Message-ID: <11056250.post@talk.nabble.com> Date: Mon, 11 Jun 2007 00:41:21 -0700 (PDT) From: gsoap To: users@jackrabbit.apache.org Subject: Re: How to escape double quote in SQL term? In-Reply-To: <510143ac0706090135v2a759351kfb44e4028d04bd1f@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: gsoap123@yahoo.com References: <11025910.post@talk.nabble.com> <510143ac0706090135v2a759351kfb44e4028d04bd1f@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, This does not work in case if we search only " see following query: SELECT * FROM nt:base WHERE CONTAINS(., '""""') In the above query we have a single term and we are searching only " which you say should be replaced by "" but it results in parser exception. Kindly suggest something. Thanks. Jukka Zitting wrote: > > Hi, > > On 6/8/07, gsoap wrote: >> How can I escape double quote in my following query, following attempt >> gives >> error? >> >> SELECT * FROM nt:base WHERE CONTAINS(., '"This term contains \" double >> quote."') > > You can use "" for that. Like this: > > SELECT * FROM nt:base WHERE CONTAINS(., '"This term contains "" double > quote."') > > BR, > > Jukka Zitting > > -- View this message in context: http://www.nabble.com/How-to-escape-double-quote-in-SQL-term--tf3889614.html#a11056250 Sent from the Jackrabbit - Users mailing list archive at Nabble.com.