Author: sebb
Date: Fri May 23 15:08:59 2014
New Revision: 1597113
URL: http://svn.apache.org/r1597113
Log:
DBCP-420 InstanceKeyDataSource discards native SQLException when given password
does not match password used to create the connection
Modified:
commons/proper/dbcp/trunk/src/changes/changes.xml
commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/datasources/InstanceKeyDataSource.java
Modified: commons/proper/dbcp/trunk/src/changes/changes.xml
URL:
http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/changes/changes.xml?rev=1597113&r1=1597112&r2=1597113&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/changes/changes.xml (original)
+++ commons/proper/dbcp/trunk/src/changes/changes.xml Fri May 23 15:08:59 2014
@@ -61,6 +61,9 @@ The <action> type attribute can be add,u
<body>
<release version="2.0.1" date="TBD" description="This is a bug fix
release.">
+ <action issue="DBCP-420" dev="sebb" type="fix">
+ InstanceKeyDataSource discards native SQLException when given password
does not match password used to create the connection
+ </action>
<action dev="markt" type="fix">
Small performance improvements when returning connections to the pool.
</action>
Modified:
commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/datasources/InstanceKeyDataSource.java
URL:
http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/datasources/InstanceKeyDataSource.java?rev=1597113&r1=1597112&r2=1597113&view=diff
==============================================================================
---
commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/datasources/InstanceKeyDataSource.java
(original)
+++
commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/datasources/InstanceKeyDataSource.java
Fri May 23 15:08:59 2014
@@ -934,7 +934,7 @@ public abstract class InstanceKeyDataSou
// Password has not changed, so refuse client, but return
connection to the pool
closeDueToException(info);
throw new SQLException("Given password did not match password
used"
- + " to create the PooledConnection.");
+ + " to create the PooledConnection.",
ex);
} catch (javax.naming.NamingException ne) {
throw new SQLException(
"NamingException encountered connecting to database",
ne);