]
Diego Pires Plentz resolved HHH-2948.
-------------------------------------
Assignee: Diego Pires Plentz
Resolution: Fixed
Fix Version/s: 3.3
3.2.6
QueryStatistics.executionMinTime always = 0
--------------------------------------------
Key: HHH-2948
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2948
Project: Hibernate3
Issue Type: Bug
Components: core
Affects Versions: 3.2.0.ga
Environment: database Oracle10g
Reporter: pi zhigang
Assignee: Diego Pires Plentz
Priority: Critical
Fix For: 3.2.6, 3.3
Becuase executionMinTime is initialized as zero (long default):
--- org.hibernate.stat.QueryStatistics.java ----
private long executionMinTime;
and, the logic for assignment statement is:
void executed(long rows, long time) {
if (time < executionMinTime) executionMinTime = time;
...
I think the initial value for executionMinTime should be:
private long executionMinTime = Long.MAX_VALUE;
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: