mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add DruidDataSourceC3P0Adapter.java testcase
This commit is contained in:
@@ -279,8 +279,6 @@ public class DruidDataSourceC3P0Adapter implements DataSource, DruidDataSourceC3
|
||||
}
|
||||
|
||||
public void setMaxStatementsPerConnection(int maxStatementsPerConnection) {
|
||||
dataSource.setPoolPreparedStatements(maxStatementsPerConnection > 0);
|
||||
|
||||
dataSource.setMaxPoolPreparedStatementPerConnectionSize(maxStatementsPerConnection);
|
||||
}
|
||||
|
||||
@@ -289,8 +287,6 @@ public class DruidDataSourceC3P0Adapter implements DataSource, DruidDataSourceC3
|
||||
}
|
||||
|
||||
public void setMaxStatements(int maxStatements) {
|
||||
dataSource.setPoolPreparedStatements(maxStatements > 0);
|
||||
|
||||
dataSource.setMaxOpenPreparedStatements(maxStatements);
|
||||
}
|
||||
|
||||
@@ -493,6 +489,6 @@ public class DruidDataSourceC3P0Adapter implements DataSource, DruidDataSourceC3
|
||||
}
|
||||
|
||||
public Logger getParentLogger() throws SQLFeatureNotSupportedException {
|
||||
throw new SQLFeatureNotSupportedException();
|
||||
return dataSource.getParentLogger();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user