rspec/rules/S4109/rule.adoc

18 lines
581 B
Plaintext
Raw Normal View History

== Why is this an issue?
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.
2021-02-02 15:02:10 +01:00
2021-01-27 13:42:22 +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
2020-06-30 12:49:37 +02:00
2022-02-04 17:28:24 +01:00
[source,text]
2020-06-30 12:49:37 +02:00
----
ALTER TRIGGER TRG_myTrigger
...
PRINT @diagnostic_message -- Noncompliant
----