@@ -287,19 +287,20 @@ create or replace package body ut_suite_cache_manager is
287287 with
288288 extract_parent_child as (
289289 select s.path, substr(s.path,1,instr(s.path,'.',-1,1)-1) as parent_path,s.object_owner,
290- case when a_random_seed is null then s.line_no else null end line_no,
291- case when a_random_seed is null then null else ut_utils.hash_suite_path(s.path, a_random_seed) end random_seed
290+ case when a_random_seed is null then s.line_no end line_no,
291+ case when a_random_seed is not null then ut_utils.hash_suite_path(s.path, a_random_seed) end random_seed
292292 from table(a_suite_rows) s),
293293 t1(path,parent_path,object_owner,line_no,random_seed) as (
294- --Anchor memeber
294+ --Anchor member
295295 select s.path, parent_path,s.object_owner,s.line_no,random_seed
296296 from extract_parent_child s
297297 where parent_path is null
298298 union all
299299 --Recursive member
300300 select t2.path, t2.parent_path,t2.object_owner,t2.line_no,t2.random_seed
301301 from t1,extract_parent_child t2
302- where t2.parent_path = t1.path)
302+ where t2.parent_path = t1.path
303+ and t2.object_owner = t1.object_owner)
303304 search depth first by line_no desc,random_seed desc nulls last set order1
304305 select value(i) as obj
305306 bulk collect into l_suite_rows
0 commit comments