You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by dj...@apache.org on 2007/03/03 01:30:14 UTC

svn commit: r514027 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/BaseActivation.java

Author: djd
Date: Fri Mar  2 16:30:12 2007
New Revision: 514027

URL: http://svn.apache.org/viewvc?view=rev&rev=514027
Log:
Add some comments to the method BaseActivation.checkPositionedStatement based upon
some understanding I gained while adding fixtures to CurrentOfTest.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/BaseActivation.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/BaseActivation.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/BaseActivation.java?view=diff&rev=514027&r1=514026&r2=514027
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/BaseActivation.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/BaseActivation.java Fri Mar  2 16:30:12 2007
@@ -1358,6 +1358,18 @@
 		return row[rsNumber].getColumn(colId);
 	}
 
+    /**
+     * Check that a positioned statement is executing against a cursor
+     * from the same PreparedStatement (plan) that the positioned
+     * statement was original compiled against.
+     * 
+     * Only called from generated code for positioned UPDATE and DELETE
+     * statements. See CurrentOfNode.
+     * 
+     * @param cursorName Name of the cursor
+     * @param psName Object name of the PreparedStatement.
+     * @throws StandardException
+     */
 	protected void checkPositionedStatement(String cursorName, String psName)
 		throws StandardException {