@@ -346,18 +346,20 @@ create or replace package body ut_compound_data_helper is
346346
347347 begin
348348 dbms_lob.createtemporary(l_compare_sql, true);
349- gen_sql_pieces_out_of_cursor(a_other.cursor_details.cursor_columns_info, a_join_by_list,
349+ gen_sql_pieces_out_of_cursor(
350+ a_other.cursor_details.cursor_columns_info, a_join_by_list,
350351 l_xmltable_stmt, l_select_stmt, l_partition_stmt, l_equal_stmt,
351- l_join_on_stmt, l_not_equal_stmt);
352+ l_join_on_stmt, l_not_equal_stmt
353+ );
352354
353355 l_temp_string := 'with exp as ( select ucd.* ';
354356 ut_utils.append_to_clob(l_compare_sql, l_temp_string);
355- get_act_and_exp_set(l_compare_sql, l_partition_stmt,l_select_stmt, l_xmltable_stmt, a_unordered,'exp');
357+ get_act_and_exp_set(l_compare_sql, l_partition_stmt, l_select_stmt, l_xmltable_stmt, a_unordered,'exp');
356358
357359
358360 l_temp_string :=',act as ( select ucd.* ';
359361 ut_utils.append_to_clob(l_compare_sql, l_temp_string);
360- get_act_and_exp_set(l_compare_sql, l_partition_stmt,l_select_stmt, l_xmltable_stmt, a_unordered,'act');
362+ get_act_and_exp_set(l_compare_sql, l_partition_stmt, l_select_stmt, l_xmltable_stmt, a_unordered,'act');
361363
362364 l_temp_string := ' select a.item_data as act_item_data, a.data_id act_data_id,'
363365 ||'e.item_data as exp_item_data, e.data_id exp_data_id, '||
@@ -629,57 +631,6 @@ create or replace package body ut_compound_data_helper is
629631 return g_diff_count;
630632 end;
631633
632- function get_missing_filter_columns(a_cursor_info ut_cursor_column_tab, a_column_filter_list ut_varchar2_list)
633- return ut_varchar2_list is
634- l_result ut_varchar2_list := ut_varchar2_list();
635- begin
636- select fl.column_value
637- bulk collect into l_result
638- from table(a_column_filter_list) fl
639- where not exists (select 1 from table(a_cursor_info) c where regexp_like(c.access_path, '^'||fl.column_value||'($|/.*)'));
640- return l_result;
641- end;
642-
643- function get_missing_pk(a_expected ut_cursor_column_tab, a_actual ut_cursor_column_tab, a_current_list ut_varchar2_list)
644- return tt_missing_pk is
645- l_actual ut_varchar2_list := coalesce(get_missing_filter_columns(a_actual,a_current_list),ut_varchar2_list());
646- l_expected ut_varchar2_list := coalesce(get_missing_filter_columns(a_expected,a_current_list),ut_varchar2_list());
647- l_missing_pk tt_missing_pk;
648- begin
649- select name,type
650- bulk collect into l_missing_pk
651- from
652- (select act.column_value name, 'e' type from table(l_expected) act
653- union all
654- select exp.column_value name, 'a' type from table(l_actual) exp)
655- order by type desc,name;
656- return l_missing_pk;
657- end;
658-
659- function contains_collection (a_cursor_info ut_cursor_column_tab)
660- return number is
661- l_collection_elements number;
662- begin
663- select count(1) into l_collection_elements from
664- table(a_cursor_info) c where c.is_collection = 1;
665- return l_collection_elements;
666- end;
667-
668- function remove_incomparable_cols( a_cursor_details ut_cursor_column_tab,a_incomparable_cols ut_varchar2_list)
669- return ut_cursor_column_tab is
670- l_result ut_cursor_column_tab;
671- begin
672- select ut_cursor_column(i.parent_name,i.access_path,i.has_nested_col,i.transformed_name,i.hierarchy_level,i.column_position ,
673- i.xml_valid_name,i.column_name,i.column_type,i.column_type_name ,i.column_schema,i.column_len,i.is_sql_diffable ,i.is_collection)
674- bulk collect into l_result
675- from table(a_cursor_details) i
676- left outer join table(a_incomparable_cols) c
677- on (i.access_path = c.column_value)
678- where c.column_value is null;
679-
680- return l_result;
681- end;
682-
683634 function getxmlchildren(a_parent_name varchar2,a_cursor_table ut_cursor_column_tab)
684635 return xmltype is
685636 l_result xmltype;
@@ -722,45 +673,6 @@ create or replace package body ut_compound_data_helper is
722673 end;
723674 end;
724675
725- function get_anytype_members_info( a_anytype anytype )
726- return t_anytype_members_rec is
727- l_result t_anytype_members_rec;
728- begin
729- if a_anytype is not null then
730- l_result.type_code := a_anytype.getinfo(
731- prec => l_result.precision,
732- scale => l_result.scale,
733- len => l_result.length,
734- csid => l_result.char_set_id,
735- csfrm => l_result.char_set_frm,
736- schema_name => l_result.schema_name,
737- type_name => l_result.type_name,
738- version => l_result.version,
739- numelems => l_result.elements_count
740- );
741- end if;
742- return l_result;
743- end;
744-
745- function get_attr_elem_info( a_anytype anytype, a_pos pls_integer := null )
746- return t_anytype_elem_info_rec is
747- l_result t_anytype_elem_info_rec;
748- begin
749- if a_anytype is not null then
750- l_result.type_code := a_anytype.getattreleminfo(
751- pos => a_pos,
752- prec => l_result.precision,
753- scale => l_result.scale,
754- len => l_result.length,
755- csid => l_result.char_set_id,
756- csfrm => l_result.char_set_frm,
757- attr_elt_type => l_result.attr_elt_type,
758- aname => l_result.attribute_name
759- );
760- end if;
761- return l_result;
762- end;
763-
764676begin
765677 g_anytype_name_map(dbms_types.typecode_date) := 'DATE';
766678 g_anytype_name_map(dbms_types.typecode_number) := 'NUMBER';
0 commit comments