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

Skip to content

Commit 274d80a

Browse files
committed
Fixing ordering
1 parent 02d41a6 commit 274d80a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

source/core/ut_suite_cache_manager.pkb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ create or replace package body ut_suite_cache_manager is
259259
Sorting from bottom to top so when we consolidate
260260
we will go in proper order.
261261
For random seed we will add an extra sort that can be null
262+
TODO: Verify object owner join
262263
*/
263264
procedure sort_and_randomize_tests(
264265
a_suite_rows in out ut_suite_cache_rows,
@@ -281,14 +282,13 @@ create or replace package body ut_suite_cache_manager is
281282
--Recursive member
282283
select t2.path, t2.parent_path,t2.object_owner,t2.line_no,t2.random_seed
283284
from t1,extract_parent_child t2
284-
where t2.parent_path = t1.path
285-
and t1.object_owner = t2.object_owner)
285+
where t2.parent_path = t1.path)
286286
search depth first by line_no desc,random_seed desc nulls last set order1
287287
select value(i) as obj
288288
bulk collect into l_suite_rows
289289
from t1 c
290290
join table(a_suite_rows) i on i.object_owner = c.object_owner and i.path = c.path
291-
order by order1 desc;
291+
order by order1 desc;
292292

293293
a_suite_rows := l_suite_rows;
294294
end;

source/core/ut_suite_manager.pkb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ create or replace package body ut_suite_manager is
279279
pragma inline(get_logical_suite, 'YES');
280280
a_suites(a_suites.last) := get_logical_suite(l_rows, l_idx, l_level,l_prev_level, l_items_at_level );
281281
end if;
282-
if l_prev_level > l_level then
282+
if l_prev_level > l_level then
283283
l_items_at_level(l_prev_level).delete;
284284
end if;
285285
l_prev_level := l_level;

0 commit comments

Comments
 (0)