Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 15417 invoked from network); 15 Jun 2005 08:15:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Jun 2005 08:15:07 -0000 Received: (qmail 49270 invoked by uid 500); 15 Jun 2005 08:15:05 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 49243 invoked by uid 500); 15 Jun 2005 08:15:05 -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: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 49221 invoked by uid 99); 15 Jun 2005 08:15:05 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 15 Jun 2005 01:15:02 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 68456FD for ; Wed, 15 Jun 2005 07:27:47 +0200 (CEST) Message-ID: <156804738.1118813267425.JavaMail.jira@ajax.apache.org> Date: Wed, 15 Jun 2005 07:27:47 +0200 (CEST) From: "Mamta A. Satoor (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-366) In jdk13, when a connection transitions from global transaction to local transaction, its default holdability of HOLD_CURSORS_OVER_COMMIT is not restored. In-Reply-To: <528859646.1118813266785.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-366?page=all ] Mamta A. Satoor updated DERBY-366: ---------------------------------- Attachment: mamta.java > In jdk13, when a connection transitions from global transaction to local transaction, its default holdability of HOLD_CURSORS_OVER_COMMIT is not restored. > ---------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-366 > URL: http://issues.apache.org/jira/browse/DERBY-366 > Project: Derby > Type: Bug > Components: JDBC > Versions: 10.0.2.1 > Reporter: Mamta A. Satoor > Assignee: Mamta A. Satoor > Attachments: mamta.java > > A connection in local transaction has a default holdability of HOLD_CURSORS_OVER_COMMIT. When this connection becomes part of a global transaction, Derby internally switches its holdability to CLOSE_CURSORS_AT_COMMIT (this is because in Derby, holdable cursors do not work with XA transactions). When this connection returns back to local transaction, its holdability should automatically get switched to HOLD_CURSORS_OVER_COMMIT. When running under jdk13, Derby does not perform the last step of restoring the connection holdability. I have attached a program to reporduce this behavior. If this program is run under jdk14, the holdability is restored as expected. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira