File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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) ||
You can’t perform that action at this time.
0 commit comments