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

Skip to content

Commit 01e93e7

Browse files
committed
Wrapping in the quota column name in cursor as it uses a type value which causing error in 11g.
1 parent 5dd4d42 commit 01e93e7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/expectations/data_values/ut_data_value_anydata.tpb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ 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-
' open l_tmp_refcursor for select value(x) as '||get_object_name(a_value)||' 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-
' open l_tmp_refcursor for select l_data '||get_object_name(self.data_type)||' from dual;'
60+
q'[ open l_tmp_refcursor for select l_data as "]'||get_object_name(self.data_type)||q'[" from dual;]'
6161
end ||
6262
' :l_refcursor := l_tmp_refcursor;
6363
end;';

0 commit comments

Comments
 (0)