2020-06-30 12:47:33 +02:00
|
|
|
include::../description.adoc[]
|
|
|
|
|
|
|
|
== Noncompliant Code Example
|
|
|
|
|
|
|
|
With the default threshold of 3:
|
2020-06-30 14:49:38 +02:00
|
|
|
|
2020-06-30 12:47:33 +02:00
|
|
|
----
|
|
|
|
BEGIN
|
|
|
|
prepare('action1');
|
|
|
|
execute('action1');
|
|
|
|
release('action1');
|
|
|
|
END;
|
|
|
|
/
|
|
|
|
----
|
|
|
|
|
|
|
|
== Compliant Solution
|
|
|
|
|
|
|
|
----
|
|
|
|
DECLARE
|
|
|
|
action CONSTANT VARCHAR2(7) := 'action1';
|
|
|
|
BEGIN
|
|
|
|
prepare(action);
|
|
|
|
execute(action);
|
|
|
|
release(action);
|
|
|
|
END;
|
|
|
|
/
|
|
|
|
----
|
|
|
|
|
|
|
|
include::../exceptions.adoc[]
|
2021-06-02 20:44:38 +02:00
|
|
|
|
2021-06-03 09:05:38 +02:00
|
|
|
ifdef::env-github,rspecator-view[]
|
2021-06-02 20:44:38 +02:00
|
|
|
== Comments And Links
|
|
|
|
(visible only on this page)
|
|
|
|
|
|
|
|
include::../comments-and-links.adoc[]
|
2021-06-03 09:05:38 +02:00
|
|
|
endif::env-github,rspecator-view[]
|