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

Skip to content

Commit ac40332

Browse files
committed
Added 12.2 Coverage
Amended install script to not fail when block coverage not present
1 parent 4f83357 commit ac40332

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
declare
2+
e_not_exists exception;
3+
pragma exception_init(e_not_exists,-6576);
4+
l_install_call varchar2(500) := 'call dbms_plsql_code_coverage.create_coverage_tables(force_it => :forceit)';
15
begin
2-
DBMS_PLSQL_CODE_COVERAGE.create_coverage_tables(
3-
force_it => TRUE);
6+
execute immediate l_install_call using in true;
7+
exception
8+
when e_not_exists then
9+
dbms_output.put_line('dbms_plsql_code_coverage doesnt exists in your database. Please upgrade.');
410
end;
511
/

0 commit comments

Comments
 (0)