rspec/rules/S4576/plsql/rule.adoc

30 lines
773 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
``++FORMS_DDL++`` command, like every DDL statements, is performing an implicit COMMIT. It should be used only if there is no pending transaction otherwise this transaction is automatically committed without updating the Form statuses. Also, the potentially acquired locks are lost in case of this implicit COMMIT.
"FORMS_DDL('COMMIT')" and "FORMS_DDL('ROLLBACK')" should be used with care and most of the time, "COMMIT_FORM" or "ROLLBACK_FORM" should be preferred.
Check the Oracle Forms documentation for more details.
2021-04-28 16:49:39 +02:00
== Noncompliant Code Example
----
FORMS_DDL('COMMIT');
----
2021-04-28 16:49:39 +02:00
== Compliant Solution
----
COMMIT_FORM;
----
ifdef::rspecator-view[]
== Comments And Links
(visible only on this page)
include::comments-and-links.adoc[]
endif::rspecator-view[]