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

Skip to content

Commit ae3d34f

Browse files
committed
Remove clob transformation
1 parent be55366 commit ae3d34f

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

source/expectations/data_values/ut_compound_data_diff_tmp.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ create global temporary table ut_compound_data_diff_tmp(
1515
diff_id raw(128),
1616
act_data_id raw(32),
1717
exp_data_id raw(32),
18-
act_item_data clob,
19-
exp_item_data clob,
18+
act_item_data xmltype,
19+
exp_item_data xmltype,
2020
item_no integer,
2121
pk_hash raw(128),
2222
item_hash raw(128),

source/expectations/data_values/ut_compound_data_helper.pkb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ create or replace package body ut_compound_data_helper is
181181

182182
execute immediate q'[with diff_info as
183183
( select act_data_id, exp_data_id,
184-
xmltype(act_item_data) act_item_data, xmltype(exp_item_data) exp_item_data, :join_by join_by, item_no
184+
act_item_data act_item_data, exp_item_data exp_item_data, :join_by join_by, item_no
185185
from ut_compound_data_diff_tmp
186186
where diff_id = :diff_id ),
187187
exp as (
@@ -869,7 +869,7 @@ create or replace package body ut_compound_data_helper is
869869
insert into ut3.ut_compound_data_diff_tmp
870870
( diff_id, act_item_data, act_data_id, exp_item_data, exp_data_id, item_no )
871871
values
872-
(a_diff_id, a_diff_tab(idx).act_item_data, a_diff_tab(idx).act_data_id, a_diff_tab(idx).exp_item_data, a_diff_tab(idx).exp_data_id,a_diff_tab(idx).item_no);
872+
(a_diff_id, xmlelement( name "ROW", a_diff_tab(idx).act_item_data), a_diff_tab(idx).act_data_id,xmlelement( name "ROW", a_diff_tab(idx).exp_item_data), a_diff_tab(idx).exp_data_id,a_diff_tab(idx).item_no);
873873
end;
874874

875875
end;

source/expectations/data_values/ut_compound_data_helper.pks

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ create or replace package ut_compound_data_helper authid definer is
5050
type tt_row_diffs is table of t_row_diffs;
5151

5252
type t_diff_rec is record (
53-
act_item_data clob,
53+
act_item_data xmltype,
5454
act_data_id raw(32),
55-
exp_item_data clob,
55+
exp_item_data xmltype,
5656
exp_data_id raw(32),
5757
item_no integer
5858
);

source/expectations/data_values/ut_compound_data_value.tpb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,8 @@ create or replace type body ut_compound_data_value as
312312
l_where_stmt := ut_compound_data_helper.generate_not_equal_sql(l_actual.columns_info, a_join_by_xpath);
313313
--l_join_is_null := ut_compound_data_helper.generate_join_null_sql(l_actual.columns_info, a_join_by_xpath);
314314
l_join_by_stmt := ut_compound_data_helper.generate_join_by_on_stmt (l_actual.columns_info, a_join_by_xpath);
315-
l_compare_sql := l_compare_sql || 'select xmlserialize(content (xmlelement( name "ROW", a.item_data)) no indent) act_item_data, a.data_id act_data_id,'
316-
||' xmlserialize(content (xmlelement( name "ROW", e.item_data)) no indent) exp_item_data, e.data_id exp_data_id, rownum item_no from act a full outer join exp e on ( '
315+
l_compare_sql := l_compare_sql || 'select a.item_data act_item_data, a.data_id act_data_id,'
316+
||' e.item_data exp_item_data, e.data_id exp_data_id, rownum item_no from act a full outer join exp e on ( '
317317
||l_join_by_stmt||' ) '
318318
||' where '||
319319
case

0 commit comments

Comments
 (0)