rspec/rules/S1071/plsql/rule.adoc
Fred Tingaud 16f6c0aecf
Inline adoc when include has no additional value (#1940)
Inline adoc files when they are included exactly once.

Also fix language tags because this inlining gives us better information
on what language the code is written in.
2023-05-25 14:18:12 +02:00

45 lines
760 B
Plaintext

== Why is this an issue?
Since Oracle 11.2, ``++RELIES_ON++`` has been deprecated because the dependencies of result cache-enabled functions are automatically computed.
=== Noncompliant code example
[source,sql]
----
CREATE OR REPLACE FUNCTION foo RETURN PLS_INTEGER RESULT_CACHE RELIES_ON(DUAL) AS -- Noncompliant
BEGIN
RETURN 0;
END;
/
DROP FUNCTION foo;
----
=== Compliant solution
[source,sql]
----
CREATE OR REPLACE FUNCTION foo RETURN PLS_INTEGER RESULT_CACHE AS
BEGIN
RETURN 0;
END;
/
DROP FUNCTION foo;
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
=== Message
Remove this deprecated "RELIES_ON" clause which is now automatically computed.
endif::env-github,rspecator-view[]