Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 72178 invoked from network); 2 Jun 2008 09:56:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jun 2008 09:56:08 -0000 Received: (qmail 29412 invoked by uid 500); 2 Jun 2008 09:56:10 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 29343 invoked by uid 500); 2 Jun 2008 09:56:10 -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 29322 invoked by uid 99); 2 Jun 2008 09:56:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2008 02:56:10 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2008 09:55:29 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9B012234C131 for ; Mon, 2 Jun 2008 02:55:46 -0700 (PDT) Message-ID: <789682086.1212400546634.JavaMail.jira@brutus> Date: Mon, 2 Jun 2008 02:55:46 -0700 (PDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-3431) DatabaseMetaData.getConnection returns the wrong connection when using connection pooling In-Reply-To: <612085556.1203415963849.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-3431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601574#action_12601574 ] Knut Anders Hatlen commented on DERBY-3431: ------------------------------------------- Thanks for the new patch, Kristian! The changes look good to me. +1 to commit. A tiny nit in StatementPoolingTest; the code below could be expressed with an assertEquals now that there's only one condition: if (!simpleName.equals(expectedName)) { - if (!simpleName.equals(expectedName + "40")) { - fail("Expected class name " + expectedName + " or " + - expectedName + "40, got " + simpleName); - } + fail("Expected class name " + expectedName + ", got " + + simpleName); } > DatabaseMetaData.getConnection returns the wrong connection when using connection pooling > ----------------------------------------------------------------------------------------- > > Key: DERBY-3431 > URL: https://issues.apache.org/jira/browse/DERBY-3431 > Project: Derby > Issue Type: Bug > Components: JDBC, Network Client > Affects Versions: 10.1.3.1, 10.2.2.0, 10.3.2.1, 10.4.1.3, 10.5.0.0 > Environment: Client-server with connection pooling enabled. > Reporter: Kristian Waagan > Assignee: Kristian Waagan > Priority: Minor > Fix For: 10.5.0.0 > > Attachments: derby-3431-1a-test_repro.diff, derby-3431-1b-test_repro.diff, derby-3431-2a-test.diff, derby-3431-3a-client_logical_metadata.diff, derby-3431-3a-client_logical_metadata.stat, derby-3431-3b-client_logical_metadata.diff > > > The connection returned from DatabaseMetaData.getConnection is not the same as the connection used to create the meta data object when the client driver is used with connection pooling enabled. > For trunk, the embedded driver/ds does the right thing. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.