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

Skip to content

Commit 539afeb

Browse files
committed
Fixed handling od package state invalidation.
1 parent 0303361 commit 539afeb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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)