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

Skip to content

Commit 207faa9

Browse files
committed
remover the with clause from query
1 parent 79133be commit 207faa9

1 file changed

Lines changed: 5 additions & 26 deletions

File tree

source/ut_suite_manager.pkb

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -180,32 +180,11 @@ create or replace package body ut_suite_manager is
180180

181181
begin
182182
-- form the single-dimension list of suites constructed from parsed packages
183-
for rec in (with excl as
184-
(select /*+materialize*/
185-
t1.owner
186-
,t1.type_name
187-
from all_types t1
188-
start with t1.owner = sys_context('userenv', 'current_schema')
189-
and t1.type_name in ('UT_SUITE_REPORTER'
190-
,'UT_REPORTERS_LIST'
191-
,'UT_OBJECTS_LIST'
192-
,'UT_EXECUTABLE'
193-
,'UT_OBJECT')
194-
195-
connect by prior t1.owner = t1.supertype_owner
196-
and prior t1.type_name = t1.supertype_name
197-
union all
198-
select tt.owner
199-
,tt.object_name
200-
from all_objects tt
201-
where tt.owner = sys_context('userenv', 'current_schema')
202-
and tt.object_name in ('UT_METADATA', 'UT_SUITE_MANAGER', 'UT_ASSERT', 'UT_UTILS'))
203-
select t.owner
204-
,t.object_name
205-
from all_objects t
206-
where t.owner = a_owner_name
207-
and t.object_type in ('PACKAGE')
208-
and (t.owner, t.object_name) not in (select * from excl)) loop
183+
for rec in (select t.owner
184+
,t.object_name
185+
from all_objects t
186+
where t.owner = a_owner_name
187+
and t.object_type in ('PACKAGE')) loop
209188
-- parse the source of the package
210189
l_suite := config_package(rec.owner, rec.object_name);
211190

0 commit comments

Comments
 (0)