mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
@@ -437,7 +437,7 @@ public abstract class FilterEventAdapter extends FilterAdapter {
|
||||
try {
|
||||
statementExecuteBefore(statement, statement.getSql());
|
||||
|
||||
boolean firstResult = super.preparedStatement_execute(chain, statement);
|
||||
boolean firstResult = chain.preparedStatement_execute(statement);
|
||||
|
||||
this.statementExecuteAfter(statement, statement.getSql(), firstResult);
|
||||
|
||||
|
||||
@@ -673,8 +673,7 @@ public final class JdbcSqlStat implements JdbcSqlStatMBean {
|
||||
}
|
||||
}
|
||||
|
||||
long millis = nanoSpan / (1000 * 1000);
|
||||
histogramRecord(millis);
|
||||
histogramRecord(nanoSpan);
|
||||
}
|
||||
|
||||
public long getExecuteMillisTotal() {
|
||||
|
||||
@@ -21,6 +21,7 @@ public class ExceptionSorterTest extends TestCase {
|
||||
dataSource.setTestOnBorrow(true);
|
||||
dataSource.setDbType("mysql");
|
||||
dataSource.setPoolPreparedStatements(true);
|
||||
dataSource.setFilters("stat");
|
||||
|
||||
dataSource.init();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user