mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
test fixed
This commit is contained in:
@@ -998,6 +998,10 @@ public class DruidPooledPreparedStatement extends DruidPooledStatement implement
|
||||
return (T) stmt;
|
||||
}
|
||||
|
||||
if (iface == PreparedStatementHolder.class) {
|
||||
return (T) this.holder;
|
||||
}
|
||||
|
||||
return super.unwrap(iface);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,6 +58,7 @@ public class PreparedStatementPool {
|
||||
return null;
|
||||
}
|
||||
|
||||
holder.incrementHitCount();
|
||||
dataSource.incrementCachedPreparedStatementHitCount();
|
||||
if (holder.isEnterOracleImplicitCache()) {
|
||||
OracleUtils.exitImplicitCacheToActive(holder.getStatement());
|
||||
|
||||
Reference in New Issue
Block a user