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