@@ -287,19 +287,20 @@ create or replace package body ut_suite_cache_manager is
287
287
with
288
288
extract_parent_child as (
289
289
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
292
292
from table(a_suite_rows) s),
293
293
t1(path,parent_path,object_owner,line_no,random_seed) as (
294
- --Anchor memeber
294
+ --Anchor member
295
295
select s.path, parent_path,s.object_owner,s.line_no,random_seed
296
296
from extract_parent_child s
297
297
where parent_path is null
298
298
union all
299
299
--Recursive member
300
300
select t2.path, t2.parent_path,t2.object_owner,t2.line_no,t2.random_seed
301
301
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)
303
304
search depth first by line_no desc,random_seed desc nulls last set order1
304
305
select value(i) as obj
305
306
bulk collect into l_suite_rows
0 commit comments