Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 90064 invoked from network); 5 Feb 2008 22:45:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Feb 2008 22:45:31 -0000 Received: (qmail 80317 invoked by uid 500); 5 Feb 2008 22:45:23 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 80099 invoked by uid 500); 5 Feb 2008 22:45:23 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 80046 invoked by uid 99); 5 Feb 2008 22:45:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2008 14:45:23 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2008 22:45:16 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 64521714070 for ; Tue, 5 Feb 2008 14:45:08 -0800 (PST) Message-ID: <6754721.1202251508408.JavaMail.jira@brutus> Date: Tue, 5 Feb 2008 14:45:08 -0800 (PST) From: "Daniel John Debrunner (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-3304) Explicit commit inside a java procedure makes a dynamic result sets passed out unavailable In-Reply-To: <22713359.1199809654164.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12565921#action_12565921 ] Daniel John Debrunner commented on DERBY-3304: ---------------------------------------------- I think that revision 618788 makes this code in resetActivations() unnecessary. It was used to force held cursors into non-held state to be closed on rollback() in Activation.reset(), since reset() used to check the holdability. Your change is good in that it removes this link between two methods that should be independent of each other (ie. resetActivations() should not have had internal knowledge of what reset() was doing). :-) /* ** andClose true means we are here for rollback. ** In case of rollback, we don't care for holding ** cursors and that's why I am resetting holdability ** to false for all activations just before rollback */ if (andClose) a.setResultSetHoldability(false); Now (and to some extent before the change) the javadoc for resetActivations() is incorrect, in addition the method name is misleading. It would be good to clean this up. > Explicit commit inside a java procedure makes a dynamic result sets passed out unavailable > ------------------------------------------------------------------------------------------ > > Key: DERBY-3304 > URL: https://issues.apache.org/jira/browse/DERBY-3304 > Project: Derby > Issue Type: Bug > Components: JDBC > Affects Versions: 10.4.0.0 > Reporter: Daniel John Debrunner > Assignee: Mamta A. Satoor > Attachments: Main.java > > > Repro (Main.java) that shows changed behavior after svn 602991 > (the patch committed for this issue). It seems a regression: (originally from Dag H. Wanvik attached to DERBY-1585) > An explicit commit inside a stored procedure makes a dynamic result sets passed out unavailable, even if the commit is executed *prior* to the result set; as in the repro. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.