add testcase & bug fixed

This commit is contained in:
wenshao
2012-08-25 20:00:12 +08:00
parent 68b0603e14
commit 68b735c7f8
3 changed files with 363 additions and 5 deletions
@@ -115,11 +115,7 @@ public class DruidPooledConnection implements javax.sql.PooledConnection, Connec
return holder.getDataSource().isOracle();
}
void closePoolableStatement(DruidPooledPreparedStatement stmt) throws SQLException {
if (this.holder == null) {
return;
}
public void closePoolableStatement(DruidPooledPreparedStatement stmt) throws SQLException {
PreparedStatement rawStatement = stmt.getRawPreparedStatement();
try {