All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.plsqlopen.rules.plsql.UnnecessaryElse.html Maven / Gradle / Ivy

The newest version!

When the IF clause of a IF-THEN-ELSE structure does not complete successfully, the ELSE clause is unnecessary.

Noncompliant Code Example

BEGIN
  IF condition THEN
    RETURN value;
  ELSE
    value := NULL;
  END IF;
END;

Compliant Solution

BEGIN
  IF condition THEN
    RETURN value;
  END IF;
  
  value := NULL;
END;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy