No rule selected
G-4250 – Avoid using identical conditions in different branches of the same IF or CASE statement.
Conditions are evaluated top to bottom in branches of a `case` statement or chain of `if`/`elsif` statements. The first condition to evaluate as true leads to that branch being executed, the rest will never execute. Having an identical duplicated condition in another branch will never be reached and will be dead code.
Tags: Control.
Quality area: Maintainability. Severity: Blocker. Fixing time: Local-medium.
← Previous
G-4240
Always use a CASE instead of a NVL2 command if parameter 2 or 3 of NVL2 is either a function call or a SELECT statement.
Next →
Press p or n to quickly navigate to the previous/next rule.
