Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 36029 invoked from network); 3 Mar 2007 00:30:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Mar 2007 00:30:35 -0000 Received: (qmail 40705 invoked by uid 500); 3 Mar 2007 00:30:44 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 40642 invoked by uid 500); 3 Mar 2007 00:30:44 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 40631 invoked by uid 99); 3 Mar 2007 00:30:44 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2007 16:30:44 -0800 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2007 16:30:35 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id D3FCE1A981A; Fri, 2 Mar 2007 16:30:14 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r514027 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/execute/BaseActivation.java Date: Sat, 03 Mar 2007 00:30:14 -0000 To: derby-commits@db.apache.org From: djd@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070303003014.D3FCE1A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 {