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

Skip to content

Commit 29ea5ce

Browse files
committed
Moved away from dba_source to all_source.
1 parent c0824f5 commit 29ea5ce

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

.travis/install.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ set feedback off
99
set verify off
1010
1111
@../source/create_utplsql_owner.sql $UT3_OWNER $UT3_OWNER_PASSWORD $UT3_TABLESPACE
12-
--only needed to run unit tests for utplsql v3, not required to run utplsql v3 itself
13-
grant select any dictionary to $UT3_OWNER;
1412
1513
@../source/create_utplsql_owner.sql $UT3_USER $UT3_USER_PASSWORD $UT3_TABLESPACE
1614
cd ..

source/core/coverage/ut_coverage.pkb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)