rspec/rules/S1071/plsql/rule.adoc

26 lines
473 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
Since Oracle 11.2, ``++RELIES_ON++`` has been deprecated because the dependencies of result cache-enabled functions are automatically computed.
== Noncompliant Code Example
----
CREATE OR REPLACE FUNCTION foo RETURN PLS_INTEGER RESULT_CACHE RELIES_ON(DUAL) AS -- Noncompliant
BEGIN
RETURN 0;
END;
/
DROP FUNCTION foo;
----
== Compliant Solution
----
CREATE OR REPLACE FUNCTION foo RETURN PLS_INTEGER RESULT_CACHE AS
BEGIN
RETURN 0;
END;
/
DROP FUNCTION foo;
----