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

Skip to content

Commit f850428

Browse files
committed
Fixed issue with DBMS_LOB.COMPARE when empty XML produced.
1 parent 24c14f9 commit f850428

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

source/expectations/data_values/ut_compound_data_value.tpb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,9 @@ create or replace type body ut_compound_data_value as
172172
on exp.item_no = act.item_no '||
173173
'where nvl( dbms_lob.compare(' ||
174174
/*the xmltransform removes column names and leaves column data to be compared only*/
175-
' xmltransform(exp.item_data, :l_xml_data_fmt).getclobval()' ||
176-
', xmltransform(act.item_data, :l_xml_data_fmt).getclobval())' ||
175+
' coalesce( xmltransform(exp.item_data, :l_xml_data_fmt).getclobval(), empty_clob() )' ||
176+
', coalesce( xmltransform(act.item_data, :l_xml_data_fmt).getclobval(), empty_clob() )' ||
177+
')' ||
177178
',1' ||
178179
') != 0'
179180
using in l_diff_id, a_match_options.exclude.to_xpath(), a_match_options.include.to_xpath(), self.data_id,

0 commit comments

Comments
 (0)