Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 89914 invoked from network); 25 Mar 2008 12:31:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Mar 2008 12:31:06 -0000 Received: (qmail 99103 invoked by uid 500); 25 Mar 2008 12:31:03 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 99084 invoked by uid 500); 25 Mar 2008 12:31:03 -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 99075 invoked by uid 99); 25 Mar 2008 12:31:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Mar 2008 05:31:03 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of marcel.reutegger@gmx.net designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 25 Mar 2008 12:30:13 +0000 Received: (qmail invoked by alias); 25 Mar 2008 12:30:33 -0000 Received: from l2tp.day.com (EHLO [192.168.10.136]) [62.192.10.243] by mail.gmx.net (mp007) with SMTP; 25 Mar 2008 13:30:33 +0100 X-Authenticated: #894343 X-Provags-ID: V01U2FsdGVkX1+I3k0aHD6IchUFrQ2/IK6x7e5RcMBfUaUQnKo+05 lkHZydUavl06+G Message-ID: <47E8F06C.4040901@gmx.net> Date: Tue, 25 Mar 2008 13:30:36 +0100 From: Marcel Reutegger User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: problem with SQL query that uses "contains" function References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org Lei Zhou wrote: > select * from my:nodeType where jcr:path LIKE '/my:root/contents/%' AND > my:state='published' AND contains(., 'account') > > When I run it against the repository, from time to time, the resultset may > contain some entries that doesn't match the condition "contains(., > 'account')" at all. > > Is this a bug or something I just didn't pickup? I'm not aware of a bug that would cause this kind of behaviour. however, it may happen that while you iterate through the result set another session modifies one of the result nodes. thus, it may appear that a node does not match the query, even though it did at the time when Query.execute() was called. regards marcel