mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
fixed config for poolPreparedStatement
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user