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

Skip to content

Commit 2c8cd32

Browse files
committed
Fixing issue with refcursor in anydata.
1 parent 01e93e7 commit 2c8cd32

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

source/expectations/data_values/ut_data_value_anydata.tpb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,12 @@ create or replace type body ut_data_value_anydata as
5555
begin
5656
l_status := l_value.get'||self.compound_type||'(l_data); '||
5757
case when self.compound_type = 'collection' then
58-
q'[ open l_tmp_refcursor for select value(x) as "]'||get_object_name(a_value)||q'[" from table(l_data) x;]'
58+
q'[ open :l_tmp_refcursor for select value(x) as "]'||get_object_name(a_value)||q'[" from table(l_data) x;]'
5959
else
60-
q'[ open l_tmp_refcursor for select l_data as "]'||get_object_name(self.data_type)||q'[" from dual;]'
60+
q'[ open :l_tmp_refcursor for select l_data as "]'||get_object_name(self.data_type)||q'[" from dual;]'
6161
end ||
62-
' :l_refcursor := l_tmp_refcursor;
63-
end;';
64-
execute immediate l_anydata_sql using in a_value, out a_refcursor;
62+
'end;';
63+
execute immediate l_anydata_sql using in a_value, in out a_refcursor;
6564
end;
6665

6766
member function get_extract_path(a_data_value anydata) return varchar2 is

0 commit comments

Comments
 (0)