Skip to content

Commit

Permalink
1.2.6 - Better handle "*" in "Id" column.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonheller1 authored Nov 21, 2019
1 parent dd4341b commit 7413d76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hist_sql_mon.pck
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
create or replace package hist_sql_mon authid current_user is
--Copyright (C) 2015 Jon Heller. This program is licensed under the LGPLv3.

C_VERSION constant varchar2(100) := '1.2.5';
C_VERSION constant varchar2(100) := '1.2.6';

/*
Purpose: Extend Real-Time SQL Monitoring to Historical SQL Monitoring. Uses AWR information
Expand Down Expand Up @@ -140,7 +140,7 @@ from
select last_plan_hash_value plan_hash_value, plan_table_output, rownumber
,case
--For rows in the formatted table, grab the number and ignore any "*", "|", or "-".
when regexp_like(plan_table_output, '\|-*\s*[0-9]* \|.*') then
when regexp_like(plan_table_output, '\|-*\**\s*[0-9]* \|.*') then
to_number(replace(replace(replace(substr(plan_table_output, 2, 6), '*'), '|'), '-'))
else
null
Expand Down

0 comments on commit 7413d76

Please sign in to comment.