rspec/rules/S2527/compliant.adoc
2022-02-04 16:28:24 +00:00

18 lines
283 B
Plaintext

== Compliant Solution
[source,text]
----
SET SERVEROUTPUT ON
DECLARE
name VARCHAR2(42) := ''; /* This is equivalent to name := NULL; */
BEGIN
IF name IS NULL THEN /* Compliant */
DBMS_OUTPUT.PUT_LINE('True');
ELSE
DBMS_OUTPUT.PUT_LINE('False');
END IF;
END;
/
----