@@ -144,9 +144,7 @@ create or replace package body ut_compound_data_helper is
144144 l_index := a_pk_table.next(l_index);
145145 end loop;
146146 end if;
147- if a_data_info.column_type in ('OBJECT') then
148- null;
149- elsif not(l_exists) then
147+ if not(l_exists) then
150148 l_sql_stmt := ' (decode(a.'||a_data_info.transformed_name||','||' e.'||a_data_info.transformed_name||',1,0) = 0)';
151149 end if;
152150 return l_sql_stmt;
@@ -163,9 +161,7 @@ create or replace package body ut_compound_data_helper is
163161 if l_pk_tab.count <> 0 then
164162 l_index:= l_pk_tab.first;
165163 loop
166- if a_data_info.column_type in ('OBJECT') then
167- null;
168- elsif l_pk_tab(l_index) in (a_data_info.access_path, a_data_info.parent_name) then
164+ if l_pk_tab(l_index) in (a_data_info.access_path, a_data_info.parent_name) then
169165 --When then table is nested and join is on whole table
170166 l_sql_stmt := l_sql_stmt ||' a.'||a_data_info.transformed_name||q'[ = ]'||' e.'||a_data_info.transformed_name;
171167 end if;
@@ -191,21 +187,15 @@ create or replace package body ut_compound_data_helper is
191187 if a_pk_table is not empty then
192188 l_index:= a_pk_table.first;
193189 loop
194- if a_data_info.column_type in ('OBJECT') then
195- null;
196- elsif a_pk_table(l_index) in (a_data_info.access_path, a_data_info.parent_name) then
190+ if a_pk_table(l_index) in (a_data_info.access_path, a_data_info.parent_name) then
197191 --When then table is nested and join is on whole table
198192 l_sql_stmt := l_sql_stmt ||a_alias||a_data_info.transformed_name;
199193 end if;
200194 exit when (a_data_info.access_path = a_pk_table(l_index)) or l_index = a_pk_table.count;
201195 l_index := a_pk_table.next(l_index);
202196 end loop;
203197 else
204- if a_data_info.column_type in ('OBJECT') then
205- null;
206- else
207- l_sql_stmt := a_alias||a_data_info.transformed_name;
208- end if;
198+ l_sql_stmt := a_alias||a_data_info.transformed_name;
209199 end if;
210200 return l_sql_stmt;
211201 end;
@@ -216,9 +206,7 @@ create or replace package body ut_compound_data_helper is
216206 l_alias varchar2(10) := a_alias;
217207 l_col_syntax varchar2(4000);
218208 begin
219- if a_data_info.column_type in ('OBJECT') then
220- null;
221- elsif a_data_info.is_sql_diffable = 0 then
209+ if a_data_info.is_sql_diffable = 0 then
222210 l_col_syntax := 'ut_utils.get_hash('||l_alias||a_data_info.transformed_name||'.getClobVal()) as '||a_data_info.transformed_name ;
223211 elsif a_data_info.is_sql_diffable = 1 and a_data_info.column_type = 'DATE' then
224212 l_col_syntax := 'to_date('||l_alias||a_data_info.transformed_name||') as '|| a_data_info.transformed_name;
@@ -250,20 +238,14 @@ create or replace package body ut_compound_data_helper is
250238 --We cannot use a precision and scale as dbms_sql.describe_columns3 return precision 0 for dual table
251239 -- there is also no need for that as we not process data but only read and compare as they are stored
252240 l_col_type := a_data_info.column_type;
253- elsif a_data_info.column_type in ('OBJECT') then
254- null;
255241 else
256242 l_col_type := a_data_info.column_type
257243 ||case when a_data_info.column_len is not null
258244 then '('||a_data_info.column_len||')'
259245 else null
260246 end;
261247 end if;
262- if a_data_info.column_type in ('OBJECT') then
263- return null;
264- else
265- return a_data_info.transformed_name||' '||l_col_type||q'[ PATH ']'||a_data_info.access_path||q'[']';
266- end if;
248+ return a_data_info.transformed_name||' '||l_col_type||q'[ PATH ']'||a_data_info.access_path||q'[']';
267249 end;
268250
269251 procedure gen_sql_pieces_out_of_cursor(
@@ -296,7 +278,7 @@ create or replace package body ut_compound_data_helper is
296278 begin
297279 if a_data_info is not empty then
298280 for i in 1..a_data_info.count loop
299- if a_data_info(i).has_nested_col = 0 then
281+ if a_data_info(i).has_nested_col = 0 and a_data_info(i).column_type <> 'OBJECT' then
300282 --Get XMLTABLE column list
301283 add_element_to_list(l_xmltab_list,generate_xmltab_stmt(a_data_info(i)));
302284 --Get Select statment list of columns
0 commit comments