Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 88da3e2

Browse files
authored
Merge branch 'develop' into fix-for-invalid-package-v2
2 parents e926425 + 5022e83 commit 88da3e2

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

source/api/ut_runner.pkb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ create or replace package body ut_runner is
1717
l_items_to_run.do_execute(l_listener);
1818

1919
ut_output_buffer.close(l_listener.reporters);
20+
exception
21+
when others then
22+
ut_output_buffer.close(l_listener.reporters);
23+
raise;
2024
end;
2125

2226
procedure run(a_paths ut_varchar2_list, a_reporter ut_reporter_base := ut_documentation_reporter(), a_color_console boolean := false) is

source/core/types/ut_executable.tpb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ create or replace type body ut_executable is
9898
' ' || ut_metadata.form_name(l_owner, l_object_name, l_procedure_name) || ';' || chr(10) ||
9999
' exception' || chr(10) ||
100100
' when others then ' || chr(10) ||
101-
' --raise on ORA-04068: existing state of packages has been discarded to avoid unrecoverable session exception' || chr(10) ||
102-
' if sqlcode = -04068 then' || chr(10) ||
103-
' raise;' || chr(10) ||
104-
' end if;' || chr(10) ||
105101
' l_error_stack := dbms_utility.format_error_stack;' || chr(10) ||
106102
' l_error_backtrace := dbms_utility.format_error_backtrace;' || chr(10) ||
103+
' --raise on ORA-04068, ORA-04061: existing state of packages has been discarded to avoid unrecoverable session exception' || chr(10) ||
104+
' if l_error_stack like ''%ORA-04068%'' or l_error_stack like ''%ORA-04061%'' then' || chr(10) ||
105+
' raise;' || chr(10) ||
106+
' end if;' || chr(10) ||
107107
' end;' || chr(10) ||
108108
' :a_error_stack := l_error_stack;' || chr(10) ||
109109
' :a_error_backtrace := l_error_backtrace;' || chr(10) ||

0 commit comments

Comments
 (0)