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

Skip to content

Commit bab7da8

Browse files
committed
Easier to understand return value
1 parent fcf6117 commit bab7da8

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

source/expectations/data_values/ut_data_value_refcursor.tpb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,12 @@ create or replace type body ut_data_value_refcursor as
154154
on (exp.row_no = act.row_no)
155155
where nvl(dbms_lob.compare(xmlserialize( content exp.row_data no indent), xmlserialize( content act.row_data no indent)),1) != 0'
156156
using in l_xpath, l_xpath, self.DATA_VALUE, l_xpath, l_xpath, l_other.DATA_VALUE;
157-
execute immediate 'select count(1) from ' || l_ut_owner || '.ut_cursor_data_diff where rownum <= 1' into l_result;
157+
158+
if ( sql%rowcount > 0 ) then
159+
l_result := 1;
160+
else
161+
l_result := 1;
162+
end if;
158163
else
159164
raise value_error;
160165
end if;

0 commit comments

Comments
 (0)