@@ -51,7 +51,7 @@ create or replace package body ut_coverage is
5151 -- The subquery is optimized by:
5252 -- - COALESCE function -> it will execute only for TRIGGERS
5353 -- - scalar subquery cache -> it will only execute once for one trigger source code.
54- function get_sources_query return varchar2 is
54+ function populate_sources_tmp_table return varchar2 is
5555 l_result varchar2(32767);
5656 l_full_name varchar2(100);
5757 begin
@@ -71,7 +71,7 @@ create or replace package body ut_coverage is
7171 coalesce(
7272 case when type!='TRIGGER' then 0 end,
7373 (select min(t.line) - 1
74- from dba_source t
74+ from all_source t
7575 where t.owner = s.owner and t.type = s.type and t.name = s.name
7676 and regexp_like( t.text, '\w*(begin|declare|compound).*','i'))
7777 ) as line,
@@ -289,9 +289,9 @@ create or replace package body ut_coverage is
289289 --prepare global temp table with sources
290290 delete from ut_coverage_sources_tmp;
291291 if g_file_mappings is not null then
292- execute immediate get_sources_query () using g_file_mappings, l_skipped_objects, g_include_list;
292+ execute immediate populate_sources_tmp_table () using g_file_mappings, l_skipped_objects, g_include_list;
293293 else
294- execute immediate get_sources_query () using l_schema_names, l_skipped_objects, g_include_list;
294+ execute immediate populate_sources_tmp_table () using l_schema_names, l_skipped_objects, g_include_list;
295295 end if;
296296 commit;
297297
0 commit comments