Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 51073 invoked from network); 11 Mar 2010 14:56:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Mar 2010 14:56:23 -0000 Received: (qmail 27365 invoked by uid 500); 11 Mar 2010 14:55:49 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 27334 invoked by uid 500); 11 Mar 2010 14:55:49 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 27289 invoked by uid 99); 11 Mar 2010 14:55:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Mar 2010 14:55:49 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Mar 2010 14:55:47 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 555CD234C4C2 for ; Thu, 11 Mar 2010 14:55:27 +0000 (UTC) Message-ID: <294344712.204871268319327348.JavaMail.jira@brutus.apache.org> Date: Thu, 11 Mar 2010 14:55:27 +0000 (UTC) From: "Thomas Mueller (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Created: (JCR-2564) SQL2 query: QOMFormatter create incorrect NOT conditions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 SQL2 query: QOMFormatter create incorrect NOT conditions -------------------------------------------------------- Key: JCR-2564 URL: https://issues.apache.org/jira/browse/JCR-2564 Project: Jackrabbit Content Repository Issue Type: Bug Components: jackrabbit-jcr-commons Reporter: Thomas Mueller Assignee: Thomas Mueller Then the following query is parsed: SELECT test.* FROM test WHERE (NOT test.name = 'Hello') AND test.id = 3 then the SQL statement generated, it becomes: SELECT test.* FROM test WHERE NOT test.name = 'Hello' AND test.id = 3 which is parsed differently and becomes: SELECT test.* FROM test WHERE NOT (test.name = 'Hello' AND test.id = 3) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.