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

Skip to content

Commit bbb9020

Browse files
committed
Adding cursor closure
1 parent 2c8cd32 commit bbb9020

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

source/expectations/data_values/ut_data_value_anydata.tpb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,14 @@ create or replace type body ut_data_value_anydata as
107107
raise cursor_not_open;
108108
end if;
109109
end if;
110+
exception
111+
when cursor_not_open then
112+
raise_application_error(-20155, 'Cursor is not open');
113+
when others then
114+
if l_refcursor%isopen then
115+
close l_refcursor;
116+
end if;
117+
raise;
110118
end;
111119

112120
member function get_instance(a_data_value anydata) return varchar2 is

0 commit comments

Comments
 (0)