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

Skip to content

Commit af8b49a

Browse files
committed
Update rownumber generated
1 parent ecaf48a commit af8b49a

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

source/expectations/data_values/ut_compound_data_helper.pkb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ create or replace package body ut_compound_data_helper is
643643
ut_utils.append_to_clob(l_compare_sql, l_select_stmt);
644644

645645
l_temp_string := ',x.data_id ,'
646-
|| case when not a_unordered then 'position ' else 'rownum ' end
646+
|| case when not a_unordered then 'position + x.item_no ' else 'rownum ' end
647647
||'item_no from '|| l_ut_owner || '.ut_compound_data_tmp x, '
648648
||q'[xmltable('/ROWSET/ROW' passing x.item_data columns ]';
649649
ut_utils.append_to_clob(l_compare_sql, l_temp_string);
@@ -666,7 +666,7 @@ create or replace package body ut_compound_data_helper is
666666
ut_utils.append_to_clob(l_compare_sql, l_select_stmt);
667667

668668
l_temp_string := ',x.data_id, '
669-
|| case when not a_unordered then 'position ' else 'rownum ' end
669+
|| case when not a_unordered then 'position + x.item_no ' else 'rownum ' end
670670
||'item_no from ' || l_ut_owner || '.ut_compound_data_tmp x,'
671671
||q'[xmltable('/ROWSET/ROW' passing x.item_data columns ]' ;
672672
ut_utils.append_to_clob(l_compare_sql,l_temp_string);

source/expectations/data_values/ut_compound_data_tmp.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ create global temporary table ut_compound_data_tmp(
1818
item_hash raw(128),
1919
pk_hash raw(128),
2020
duplicate_no integer,
21-
constraint ut_cmp_data_tmp_hash_pk unique (data_id,item_no, item_hash , duplicate_no)
22-
) on commit preserve rows;
21+
constraint ut_cmp_data_tmp_hash_pk unique (data_id, item_no, duplicate_no)
22+
) on commit preserve rows;

source/expectations/data_values/ut_data_value_refcursor.tpb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ create or replace type body ut_data_value_refcursor as
2323
end;
2424

2525
member procedure init(self in out nocopy ut_data_value_refcursor, a_value sys_refcursor) is
26-
c_bulk_rows constant integer := 5000;
26+
c_bulk_rows constant integer := 10000;
2727
l_cursor sys_refcursor := a_value;
2828
l_ctx number;
2929
l_xml xmltype;
3030
l_current_date_format varchar2(4000);
3131
cursor_not_open exception;
3232
l_ut_owner varchar2(250) := ut_utils.ut_owner;
33-
l_set_id integer := 1;
33+
l_set_id integer := 0;
3434

3535
begin
3636
self.is_data_null := ut_utils.boolean_to_int(a_value is null);
@@ -72,7 +72,7 @@ create or replace type body ut_data_value_refcursor as
7272
'values (:self_guid, :self_row_count, :l_xml)'
7373
using in self.data_id, l_set_id, l_xml;
7474

75-
l_set_id := l_set_id + 1;
75+
l_set_id := l_set_id + c_bulk_rows;
7676
end loop;
7777

7878
ut_expectation_processor.reset_nls_params();

0 commit comments

Comments
 (0)