Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 18782 invoked from network); 24 Apr 2006 21:01:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Apr 2006 21:01:37 -0000 Received: (qmail 24038 invoked by uid 500); 24 Apr 2006 21:01:36 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 24006 invoked by uid 500); 24 Apr 2006 21:01:36 -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 23997 invoked by uid 99); 24 Apr 2006 21:01:36 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Apr 2006 14:01:36 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Apr 2006 14:01:35 -0700 Received: from brutus (localhost.localdomain [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C1ED67142C9 for ; Mon, 24 Apr 2006 21:00:10 +0000 (GMT) Message-ID: <29974887.1145912410791.JavaMail.jira@brutus> Date: Mon, 24 Apr 2006 21:00:10 +0000 (GMT+00:00) From: "Andrew McIntyre (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Closed: (DERBY-1144) With client PooledConnection.getConnection() does not reset holdability and isolation state properly In-Reply-To: <1447685262.1143141858714.JavaMail.jira@ajax> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-1144?page=all ] Andrew McIntyre closed DERBY-1144: ---------------------------------- Fix Version: 10.1.3.0 Resolution: Fixed > With client PooledConnection.getConnection() does not reset holdability and isolation state properly > ---------------------------------------------------------------------------------------------------- > > Key: DERBY-1144 > URL: http://issues.apache.org/jira/browse/DERBY-1144 > Project: Derby > Type: Bug > Components: Network Client > Versions: 10.1.2.2, 10.1.2.3 > Reporter: Kathey Marsden > Assignee: Kathey Marsden > Fix For: 10.2.0.0, 10.1.3.0, 10.1.2.4 > Attachments: derby1144.diff > > I found this issue when working on DERBY-1044 which was filed for the isolation not getting reset for XAConnections. > I found that this was a generic issue for PooledConnections and also that holdability was also wrong. > The fix proposed for DERBY-1044 should also fix this issue. That bug has the repro for the isolation state issue > For holdability, this code passes for embedded but fails for client: > > // Test holdability > ConnectionPoolDataSource ds = TestUtil.getConnectionPoolDataSource(p); > pc1 = ds.getPooledConnection(); > testPooledConnHoldability("PooledConnection", pc1); > pc1.close(); > ** > * @param string > * @param pc1 > */ > private static void testPooledConnHoldability(String string, PooledConnection pc1) > throws SQLException { > System.out.println("\n**Test holdability state**"); > Connection conn = pc1.getConnection(); > conn.setHoldability(ResultSet.CLOSE_CURSORS_AT_COMMIT); > // reset the connection and see if the holdability gets reset > conn = pc1.getConnection(); > int holdability = conn.getHoldability(); > if (holdability != ResultSet.HOLD_CURSORS_OVER_COMMIT) > { > System.out.println("FAIL: Holdability not reset on get Connection"); > } > else > { > System.out.println("PASS: Holdability reset on getConnection"); > } > conn.close(); > } -- 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