org.sonar.l10n.plsqlopen.rules.plsql.VariableInitializationWithFunctionCall.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zpa-checks Show documentation
Show all versions of zpa-checks Show documentation
Z PL/SQL Analyzer :: Checks
The newest version!
If your initialization fails you will not be able to handle the error in your exceptions block.
Noncompliant Code Example
DECLARE
employee_name emp.name%TYPE := get_employee_name(id => 5);
BEGIN
...
END;
Compliant Solution
DECLARE
employee_name emp.name%TYPE;
BEGIN
employee_name := get_employee_name(id => 5);
...
END;