Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0
-
None
Description
The throw in InstanceKeyDataSource at line 936 does not pass on the native SQL exception from the connection test:
} catch (SQLException ex) { // 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."); }
It would be great if this throw could include the cause exception:
throw new SQLException("Given password did not match password used" + " to create the PooledConnection.", ex);
as we have code that detects login related SQLExceptions and takes actions on them.