bug fixed for StatFitler

This commit is contained in:
wenshao
2012-08-07 10:47:14 +08:00
parent 0c4b481c01
commit 5a83edf523
11 changed files with 48 additions and 25 deletions
@@ -235,12 +235,12 @@ public class MockDriver implements Driver, MockDriverMBean {
return true;
}
protected ResultSet executeQuery(MockStatement stmt, String sql) throws SQLException {
public ResultSet executeQuery(MockStatementBase stmt, String sql) throws SQLException {
if (logExecuteQueryEnable && LOG.isDebugEnabled()) {
LOG.debug("executeQuery " + sql);
}
MockConnection conn = stmt.getMockConnection();
MockConnection conn = stmt.getConnection();
long idleTimeMillis = System.currentTimeMillis() - conn.getLastActiveTimeMillis();
if (idleTimeMillis >= this.idleTimeCount) {