rspec/rules/S4109/rule.adoc

14 lines
527 B
Plaintext
Raw Normal View History

2020-06-30 12:49:37 +02:00
There's almost no point in returning results from a trigger. Because there is generally no expectation that triggers will return anything, any such results are likely to be ignored nearly all the time.
2020-12-23 14:59:06 +01:00
This rule raises an issue when ``PRINT`` is used inside a trigger, and when ``SELECT``, or ``FETCH`` is used inside a trigger without the retrieved data subsequently being used inside the trigger itself.
2020-06-30 12:49:37 +02:00
== Noncompliant Code Example
----
ALTER TRIGGER TRG_myTrigger
...
PRINT @diagnostic_message -- Noncompliant
----