Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 92596 invoked from network); 23 Nov 2009 15:17:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Nov 2009 15:17:08 -0000 Received: (qmail 56946 invoked by uid 500); 23 Nov 2009 15:17:07 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 56853 invoked by uid 500); 23 Nov 2009 15:17:06 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 56844 invoked by uid 99); 23 Nov 2009 15:17:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Nov 2009 15:17:06 +0000 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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Nov 2009 15:17:04 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 68D2A23889C9; Mon, 23 Nov 2009 15:16:43 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r883366 - /commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingConnection.java Date: Mon, 23 Nov 2009 15:16:43 -0000 To: commits@commons.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091123151643.68D2A23889C9@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sebb Date: Mon Nov 23 15:16:36 2009 New Revision: 883366 URL: http://svn.apache.org/viewvc?rev=883366&view=rev Log: Don't catch Exception when only SQLException is thrown (this agrees with other createKey() methods) Modified: commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingConnection.java Modified: commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingConnection.java URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingConnection.java?rev=883366&r1=883365&r2=883366&view=diff ============================================================================== --- commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingConnection.java (original) +++ commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/PoolingConnection.java Mon Nov 23 15:16:36 2009 @@ -226,7 +226,7 @@ String catalog = null; try { catalog = getCatalog(); - } catch (Exception e) {} + } catch (SQLException e) {} return new PStmtKey(normalizeSQL(sql), catalog, resultSetType, resultSetConcurrency, stmtType); } @@ -248,7 +248,7 @@ String catalog = null; try { catalog = getCatalog(); - } catch (Exception e) {} + } catch (SQLException e) {} return new PStmtKey(normalizeSQL(sql), catalog, stmtType); }