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