You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Licensed under the Apache License, Version 2.0 (the "License"):
7
+
you may not use this file except in compliance with the License.
8
+
You may obtain a copy of the License at
9
+
10
+
http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+
Unless required by applicable law or agreed to in writing, software
13
+
distributed under the License is distributed on an "AS IS" BASIS,
14
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+
See the License for the specific language governing permissions and
16
+
limitations under the License.
17
+
*/
18
+
constructor function ut_path_item(self in out nocopy ut_path_item, schema_name varchar2, object_name varchar2,procedure_name varchar2) return self as result is
19
+
begin
20
+
self.schema_name := schema_name;
21
+
self.object_name := object_name;
22
+
self.procedure_name := procedure_name;
23
+
return;
24
+
end;
25
+
26
+
constructor function ut_path_item(self in out nocopy ut_path_item, schema_name varchar2,suite_path varchar2) return self as result is
27
+
begin
28
+
self.schema_name := schema_name;
29
+
self.suite_path := suite_path;
30
+
return;
31
+
end;
32
+
33
+
constructor function ut_path_item(self in out nocopy ut_path_item, schema_name varchar2, object_name varchar2,procedure_name varchar2,suite_path varchar2) return self as result is
Licensed under the Apache License, Version 2.0 (the "License"):
7
+
you may not use this file except in compliance with the License.
8
+
You may obtain a copy of the License at
9
+
10
+
http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+
Unless required by applicable law or agreed to in writing, software
13
+
distributed under the License is distributed on an "AS IS" BASIS,
14
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+
See the License for the specific language governing permissions and
16
+
limitations under the License.
17
+
*/
18
+
schema_name varchar2(4000),
19
+
object_name varchar2(250),
20
+
procedure_name varchar2(250),
21
+
suite_path varchar2(4000),
22
+
constructor function ut_path_item(self in out nocopy ut_path_item, schema_name varchar2, object_name varchar2,procedure_name varchar2) return self as result,
23
+
constructor function ut_path_item(self in out nocopy ut_path_item, schema_name varchar2,suite_path varchar2) return self as result,
24
+
constructor function ut_path_item(self in out nocopy ut_path_item, schema_name varchar2, object_name varchar2,procedure_name varchar2,suite_path varchar2) return self as result
@@ -254,6 +358,82 @@ create or replace package body ut_suite_cache_manager is
254
358
using upper(l_object_owner), l_path, l_path, upper(a_object_name), upper(a_procedure_name), l_include_tags, l_include_tags, l_exclude_tags, a_random_seed;
255
359
return l_results;
256
360
end;
361
+
362
+
function expand_paths(a_schema_paths ut_path_items) return ut_path_items is
363
+
l_schema_paths ut_path_items:= ut_path_items();
364
+
begin
365
+
with paths_to_expand as (
366
+
select /*+ no_parallel */ min(path) as suite_path,sp.schema_name as schema_name,nvl(sp.object_name,c.object_name) as object_name,sp.procedure_name as procedure_name
367
+
from ut_suite_cache c,
368
+
table(a_schema_paths) sp
369
+
where c.object_owner = upper(sp.schema_name)
370
+
and c.object_name like nvl(replace(upper(sp.object_name),'*','%'),c.object_name)
371
+
and c.name like nvl(replace(upper(sp.procedure_name),'*','%'), c.name)
372
+
and sp.suite_path is null
373
+
group by sp.schema_name,nvl(sp.object_name,c.object_name),sp.procedure_name
374
+
union all
375
+
select /*+ no_parallel */ c.path as suite_path,sp.schema_name,sp.object_name,sp.procedure_name as procedure_name
376
+
from
377
+
ut_suite_cache c,
378
+
table(a_schema_paths) sp
379
+
where c.object_owner = upper(sp.schema_name)
380
+
and sp.suite_path is not null
381
+
and instr(sp.suite_path,'*') > 0
382
+
and c.path like replace(sp.suite_path,'*','%')
383
+
union all
384
+
select /*+ no_parallel */ sp.suite_path as suite_path,sp.schema_name,sp.object_name,sp.procedure_name as procedure_name
0 commit comments