bug fixed : statement pool

This commit is contained in:
wenshao
2011-12-17 23:49:22 +08:00
parent c01d0e0749
commit 4bf87dc497
4 changed files with 111 additions and 14 deletions
@@ -29,7 +29,7 @@ public class PoolableCallableStatementTest extends TestCase {
protected void setUp() throws Exception {
raw = new MockCallableStatement(null, null);
stmt = new PoolableCallableStatement(null,
new PreparedStatementHolder(new PreparedStatementKey("", null, null), raw)) {
new PreparedStatementHolder(new PreparedStatementKey("", null, null, 0, 0, 0), raw)) {
protected SQLException checkException(Throwable error) throws SQLException {
if (error instanceof SQLException) {
@@ -25,7 +25,7 @@ public class PoolablePreparedStatementTest extends TestCase {
protected void setUp() throws Exception {
raw = new MockPreparedStatement(null, null);
stmt = new PoolablePreparedStatement(null,
new PreparedStatementHolder(new PreparedStatementKey("", null, null), raw)) {
new PreparedStatementHolder(new PreparedStatementKey("", null, null, 0, 0, 0), raw)) {
protected SQLException checkException(Throwable error) throws SQLException {
if (error instanceof SQLException) {