Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 39954 invoked from network); 29 Mar 2011 14:16:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Mar 2011 14:16:46 -0000 Received: (qmail 10011 invoked by uid 500); 29 Mar 2011 14:16:46 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 9886 invoked by uid 500); 29 Mar 2011 14:16:46 -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 9873 invoked by uid 99); 29 Mar 2011 14:16:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Mar 2011 14:16:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Mar 2011 14:16:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 05DDB86C25 for ; Tue, 29 Mar 2011 14:16:06 +0000 (UTC) Date: Tue, 29 Mar 2011 14:16:06 +0000 (UTC) From: "Jukka Zitting (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <931847366.18954.1301408166020.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1191171247.18557.1301391185689.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (JCR-2933) SQL2 Left Outer Join MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-2933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13012497#comment-13012497 ] Jukka Zitting commented on JCR-2933: ------------------------------------ As discussed on users@, this actually is a problem. The join should only look at the join condition, not the where clauses. > SQL2 Left Outer Join > -------------------- > > Key: JCR-2933 > URL: https://issues.apache.org/jira/browse/JCR-2933 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-core > Affects Versions: 2.2.4 > Reporter: Manfred Sattler > Assignee: Jukka Zitting > > Create this nodes. > def n1 = root.addNode("node1", "sling:SamplePage"); > n1.setProperty("n1prop1", "page1"); > def n2 = n1.addNode("node2", "sling:SampleContent"); > n2.setProperty("n2prop1", "content1"); > Execute this Query: > Select * from [sling:SamplePage] as page left outer join [sling:SampleContent] as content on ISDESCENDANTNODE(content,page) where page.n1prop1 = 'page1' and content.n2prop1 = 'content1'; > The resultset have 1 row with 2 Nodes. This OK. > Then execute this: > Select * from [sling:SamplePage] as page left outer join [sling:SampleContent] as content on ISDESCENDANTNODE(content,page) where page.n1prop1 = 'page1' and content.n2prop1 = 'XXXXX'; > The resultset has 1 row with 1 node. > This wrong. The result should be 0 rows. > Old Versions, prior 2.2.2 have also 0 rows as result. > Also, if nodes "n2" not exists, jackrabbit reports 1 row as result. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira