Skip to content

Commit 00f46d5

Browse files
committed
Bugfix: Show execution plan with requested period if there is no ASH data
1 parent b849f4e commit 00f46d5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/views/dba_history/_list_sql_detail_historic.html.erb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,9 @@ Hash-value over total optimizer environment + Number of different optimizer envi
173173
:parsing_schema_name => @parsing_schema_name,
174174
min_snap_id: @sql.min_snap_id,
175175
max_snap_id: @sql.max_snap_id,
176-
:time_selection_start => localeDateTime(@sql.first_occurrence), # show ASH for the whole AWR snapshot instead of requested period which may be only one second (@time_selection_start)
177-
:time_selection_end => localeDateTime(@sql.last_occurrence), # show ASH for the whole AWR snapshot instead of requested period which may be only one second (@time_selection_end)
176+
# show ASH for the whole AWR snapshot instead of requested period which may be only one second (@time_selection_start)
177+
:time_selection_start => @sql.first_occurrence.nil? ? @time_selection_start : localeDateTime(@sql.first_occurrence),
178+
:time_selection_end => @sql.last_occurrence.nil? ? @time_selection_end : localeDateTime(@sql.last_occurrence),
178179
}, :title => "Show execution plan(s) in given time period")
179180
%>
180181
</div>

0 commit comments

Comments
 (0)