改进PreparedStatementCache

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@915 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-09-28 23:45:54 +00:00
parent bdd0671d85
commit 38fcc483f6
4 changed files with 30 additions and 7 deletions
@@ -53,7 +53,7 @@ public final class ConnectionHolder {
this.lastActiveTimeMillis = connecttimeMillis;
if (this.poolPreparedStatements) {
statementPool = new PreparedStatementPool();
statementPool = new PreparedStatementPool(dataSource.getMaxPoolPreparedStatementPerConnectionSize());
} else {
statementPool = null;
}