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

Skip to content

Commit 4f33cd1

Browse files
authored
Merge branch 'develop' into license_header
2 parents 424e599 + 5022e83 commit 4f33cd1

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
@@ -34,6 +34,10 @@ create or replace package body ut_runner is
3434
l_items_to_run.do_execute(l_listener);
3535

3636
ut_output_buffer.close(l_listener.reporters);
37+
exception
38+
when others then
39+
ut_output_buffer.close(l_listener.reporters);
40+
raise;
3741
end;
3842

3943
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
@@ -114,12 +114,12 @@ create or replace type body ut_executable is
114114
' ' || ut_metadata.form_name(l_owner, l_object_name, l_procedure_name) || ';' || chr(10) ||
115115
' exception' || chr(10) ||
116116
' when others then ' || chr(10) ||
117-
' --raise on ORA-04068: existing state of packages has been discarded to avoid unrecoverable session exception' || chr(10) ||
118-
' if sqlcode = -04068 then' || chr(10) ||
119-
' raise;' || chr(10) ||
120-
' end if;' || chr(10) ||
121117
' l_error_stack := dbms_utility.format_error_stack;' || chr(10) ||
122118
' l_error_backtrace := dbms_utility.format_error_backtrace;' || chr(10) ||
119+
' --raise on ORA-04068, ORA-04061: existing state of packages has been discarded to avoid unrecoverable session exception' || chr(10) ||
120+
' if l_error_stack like ''%ORA-04068%'' or l_error_stack like ''%ORA-04061%'' then' || chr(10) ||
121+
' raise;' || chr(10) ||
122+
' end if;' || chr(10) ||
123123
' end;' || chr(10) ||
124124
' :a_error_stack := l_error_stack;' || chr(10) ||
125125
' :a_error_backtrace := l_error_backtrace;' || chr(10) ||

0 commit comments

Comments
 (0)