add DruidDataSourceC3P0Adapter.java testcase

This commit is contained in:
wenshao
2012-08-28 08:59:35 +08:00
parent 33f5603dee
commit 2689f9392e
2 changed files with 82 additions and 5 deletions
@@ -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();
}
}