rspec/rules/S2473/plsql/rule.adoc

24 lines
390 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
Some types cannot be constrained, and attempting to do so results in the exception ``++PLS-00566: type name "..." cannot be constrained++`` being raised.
== Noncompliant Code Example
----
DECLARE
foo BLOB(42); -- Noncompliant - raises PLS-00566: type name "BLOB" cannot be constrained
BEGIN
NULL;
END;
/
----
== Compliant Solution
----
DECLARE
foo BLOB;
BEGIN
NULL;
END;
/
----