db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhille...@apache.org
Subject svn commit: r1493123 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/CursorNode.java
Date Fri, 14 Jun 2013 15:39:24 GMT
Author: rhillegas
Date: Fri Jun 14 15:39:24 2013
New Revision: 1493123

URL: http://svn.apache.org/r1493123
Log:
DERBY-6263: Make the Visitor logic inspect ORDER BY, FETCH, and OFFSET CLAUSES. Tests passed
cleanly for me on derby-6263-01-aa-visit-ignored-clauses.diff.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/CursorNode.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/CursorNode.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/CursorNode.java?rev=1493123&r1=1493122&r2=1493123&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/CursorNode.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/CursorNode.java Fri
Jun 14 15:39:24 2013
@@ -30,6 +30,7 @@ import org.apache.derby.iapi.reference.S
 import org.apache.derby.iapi.services.compiler.MethodBuilder;
 import org.apache.derby.iapi.services.sanity.SanityManager;
 import org.apache.derby.iapi.sql.compile.C_NodeTypes;
+import org.apache.derby.iapi.sql.compile.Visitor;
 import org.apache.derby.iapi.sql.conn.Authorizer;
 import org.apache.derby.iapi.sql.dictionary.DataDictionary;
 import org.apache.derby.iapi.sql.dictionary.TableDescriptor;
@@ -793,4 +794,22 @@ public class CursorNode extends DMLState
             return tmp;
         }
     }
+    
+	/**
+	 * Accept the visitor for all visitable children of this node.
+	 * 
+	 * @param v the visitor
+	 *
+	 * @exception StandardException on error
+	 */
+	void acceptChildren(Visitor v)
+		throws StandardException
+	{
+        super.acceptChildren(v);
+
+        if (orderByList != null) { orderByList.acceptChildren( v ); }
+        if (offset != null) { offset.acceptChildren( v ); }
+        if (fetchFirst != null) { fetchFirst.acceptChildren( v ); }
+	}
+
 }



Mime
View raw message