mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
补充出错信息
git-svn-id: http://code.alibabatech.com/svn/druid/trunk@448 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user