fixed config for poolPreparedStatement

This commit is contained in:
wenshao
2013-08-19 14:01:44 +08:00
parent 26419df2fd
commit 0526585337
@@ -529,6 +529,8 @@ public abstract class DruidAbstractDataSource extends WrapperAdapter implements
public void setMaxPoolPreparedStatementPerConnectionSize(int maxPoolPreparedStatementPerConnectionSize) {
if (maxPoolPreparedStatementPerConnectionSize > 0) {
this.poolPreparedStatements = true;
} else {
this.poolPreparedStatements = false;
}
this.maxPoolPreparedStatementPerConnectionSize = maxPoolPreparedStatementPerConnectionSize;