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

Skip to content

Commit ada957d

Browse files
committed
Fixed exception handling on anytype.getpersistent
1 parent 004b537 commit ada957d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

source/expectations/data_values/ut_cursor_details.tpb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,6 @@ create or replace type body ut_cursor_details as
165165
a_owner in varchar2, a_type_name in varchar2
166166
) return anytype is
167167
l_result anytype;
168-
e_not_found exception;
169-
pragma exception_init(e_not_found,-22303);
170168
begin
171169
begin
172170
$if dbms_db_version.version <= 12 $then
@@ -175,7 +173,7 @@ create or replace type body ut_cursor_details as
175173
l_result := getanytypefrompersistent( a_owner, a_type_name );
176174
$end
177175
exception
178-
when e_not_found then
176+
when others then
179177
null;
180178
end;
181179
return l_result;

0 commit comments

Comments
 (0)