支持Spring和ibatis

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@426 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-07-13 13:52:59 +00:00
parent 53d17c5513
commit 7f73f0a55f
4 changed files with 116 additions and 5 deletions
@@ -259,7 +259,7 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
PoolableConnection poolalbeConnection = getConnectionInternal();
if (isTestOnBorrow()) {
boolean validate = testConnection(poolalbeConnection.getRawConnection());
boolean validate = testConnection(poolalbeConnection.getConnection());
if (!validate) {
LOG.debug("skip not validate connection.");
Connection realConnection = poolalbeConnection.getConnection();