jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r497395 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/QueryImpl.java
Date Thu, 18 Jan 2007 11:02:05 GMT
Author: mreutegg
Date: Thu Jan 18 03:02:04 2007
New Revision: 497395

URL: http://svn.apache.org/viewvc?view=rev&rev=497395
Log:
JCR-711: Select * does not return declared properties of node type in FROM clause

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/QueryImpl.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/QueryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/QueryImpl.java?view=diff&rev=497395&r1=497394&r2=497395
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/QueryImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/QueryImpl.java
Thu Jan 18 03:02:04 2007
@@ -29,6 +29,7 @@
 import org.apache.jackrabbit.core.query.PropertyTypeRegistry;
 import org.apache.jackrabbit.core.query.QueryParser;
 import org.apache.jackrabbit.core.query.QueryRootNode;
+import org.apache.jackrabbit.core.query.AndQueryNode;
 import org.apache.jackrabbit.name.QName;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -207,6 +208,11 @@
             LocationStepQueryNode[] steps = root.getLocationNode().getPathSteps();
             final QName[] ntName = new QName[1];
             steps[steps.length - 1].acceptOperands(new DefaultQueryNodeVisitor() {
+
+                public Object visit(AndQueryNode node, Object data) {
+                    return node.acceptOperands(this, data);
+                }
+
                 public Object visit(NodeTypeQueryNode node, Object data) {
                     ntName[0] = node.getValue();
                     return data;



Mime
View raw message