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

Skip to content

Commit c2d52ae

Browse files
committed
resolved sonar violations
1 parent b64443d commit c2d52ae

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

source/expectations/data_values/ut_compound_data_helper.pkb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -491,12 +491,9 @@ create or replace package body ut_compound_data_helper is
491491
)
492492
order by final_order,]';
493493

494-
if a_enforce_column_order then
494+
if a_enforce_column_order or (not(a_enforce_column_order) and not(a_unordered)) then
495495
l_sql := l_sql ||q'[case when final_order = 1 then rn else rnk end,
496496
case when final_order = 1 then rnk else rn end ]';
497-
elsif not(a_enforce_column_order) and not(a_unordered) then
498-
l_sql := l_sql ||q'[case when final_order = 1 then rn else rnk end,
499-
case when final_order = 1 then rnk else rn end ]';
500497
elsif a_unordered then
501498
l_sql := l_sql ||q'[case when final_order = 1 then col_name else to_char(rnk) end,
502499
case when final_order = 1 then to_char(rn) else col_name end,

source/expectations/ut_expectation_refcursor.tpb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ create or replace type body ut_expectation_refcursor as
144144
end;
145145

146146
member function uc return ut_expectation_refcursor is
147-
l_result ut_expectation_refcursor;
148147
begin
149148
return unordered_columns;
150149
end;

0 commit comments

Comments
 (0)