补充出错信息

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@448 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-07-15 09:25:32 +00:00
parent c4a986415a
commit 777832ac03
9 changed files with 47 additions and 23 deletions
@@ -24,11 +24,15 @@ import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import com.alibaba.druid.logging.Log;
import com.alibaba.druid.logging.LogFactory;
/**
* @author wenshao<szujobs@hotmail.com>
*/
public class PoolableStatement extends PoolableWrapper implements Statement {
private final static Log LOG = LogFactory.getLog(PoolableStatement.class);
private final Statement stmt;
protected PoolableConnection conn;
protected final List<ResultSet> resultSetTrace = new ArrayList<ResultSet>();
@@ -62,7 +66,7 @@ public class PoolableStatement extends PoolableWrapper implements Statement {
rs.close();
}
} catch (SQLException ex) {
ex.printStackTrace(); //
LOG.error("clearResultSet error", ex);
}
}
resultSetTrace.clear();