提交 2a87ac20 authored 作者: Noel Grandin's avatar Noel Grandin

Fix for issue #171: Broken QueryStatisticsData duration data when trace

level < TraceSystem.INFO
上级 9233665e
......@@ -21,6 +21,8 @@ Change Log
<h2>Next Version (unreleased)</h2>
<ul>
<li>Fix for issue #171: Broken QueryStatisticsData duration data when trace level < TraceSystem.INFO
</li>
<li>Pull request #170: Added SET QUERY_STATISTICS_MAX_ENTRIES
</li>
<li>Pull request #165: Fix compatibility postgresql function string_agg
......
......@@ -7,7 +7,6 @@ package org.h2.command;
import java.sql.SQLException;
import java.util.ArrayList;
import org.h2.api.ErrorCode;
import org.h2.engine.Constants;
import org.h2.engine.Database;
......@@ -122,7 +121,7 @@ public abstract class Command implements CommandInterface {
* Start the stopwatch.
*/
void start() {
if (trace.isInfoEnabled()) {
if (trace.isInfoEnabled() || session.getDatabase().getQueryStatistics()) {
startTime = System.currentTimeMillis();
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论