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

Skip to content

Commit c9cb004

Browse files
committed
Fixes to conditional compilation
1 parent e6c2be2 commit c9cb004

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

source/core/coverage/ut_coverage.pkb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,11 @@ create or replace package body ut_coverage is
181181
return null;
182182
$end
183183
elsif a_coverage_options.coverage_type = gc_extended_coverage then
184-
--Collect data for block and proftab and pass to extended for modifications.
185-
return ut_coverage_extended.get_extended_coverage(a_coverage_options => a_coverage_options);
184+
$if dbms_db_version.version = 12 and dbms_db_version.release >= 2 or dbms_db_version.version > 12 $then
185+
return ut_coverage_extended.get_extended_coverage(a_coverage_options => a_coverage_options);
186+
$else
187+
return null;
188+
$end
186189
else
187190
return ut_coverage_proftab.get_coverage_data_profiler(a_coverage_options => a_coverage_options);
188191
end if;

source/reporters/ut_coverage_report_html_helper.pkb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,16 @@ create or replace package body ut_coverage_report_html_helper is
108108
begin
109109
if l_coverage_type = ut_coverage.gc_block_coverage then
110110
$if dbms_db_version.version = 12 and dbms_db_version.release >= 2 or dbms_db_version.version > 12 $then
111-
l_result := ut_block_report_html_helper.get_index(a_coverage_data => a_coverage_data, a_assets_path => a_assets_path,a_project_name=>a_project_name,a_command_line=> a_command_line);
111+
l_result := ut_block_report_html_helper.get_index(a_coverage_data => a_coverage_data, a_assets_path => a_assets_path,a_project_name=>a_project_name,a_command_line=> a_command_line);
112112
$else
113113
l_result := null;
114114
$end
115115
elsif l_coverage_type = ut_coverage.gc_extended_coverage then
116-
l_result := ut_extended_report_html_helper.get_index(a_coverage_data => a_coverage_data, a_assets_path => a_assets_path,a_project_name=>a_project_name,a_command_line=> a_command_line);
116+
$if dbms_db_version.version = 12 and dbms_db_version.release >= 2 or dbms_db_version.version > 12 $then
117+
l_result := ut_extended_report_html_helper.get_index(a_coverage_data => a_coverage_data, a_assets_path => a_assets_path,a_project_name=>a_project_name,a_command_line=> a_command_line);
118+
$else
119+
l_result := null;
120+
$end
117121
else
118122
l_result := ut_proftab_report_html_helper.get_index(a_coverage_data => a_coverage_data, a_assets_path => a_assets_path,a_project_name=>a_project_name,a_command_line=> a_command_line);
119123
end if;

0 commit comments

Comments
 (0)