mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
支持Spring和ibatis
git-svn-id: http://code.alibabatech.com/svn/druid/trunk@426 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -41,6 +41,10 @@ public class PoolableCallableStatement extends PoolablePreparedStatement impleme
|
||||
this.stmt = stmt;
|
||||
}
|
||||
|
||||
public CallableStatement getCallableStatementRaw() {
|
||||
return stmt;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerOutParameter(int parameterIndex, int sqlType) throws SQLException {
|
||||
try {
|
||||
|
||||
@@ -104,10 +104,6 @@ public class PoolableConnection implements PooledConnection, Connection {
|
||||
this.holder.getStatementPool().put(stmt);
|
||||
}
|
||||
|
||||
public Connection getRawConnection() {
|
||||
return conn;
|
||||
}
|
||||
|
||||
public ConnectionHolder getConnectionHolder() {
|
||||
return holder;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user