Skip to main content
Open

Code template validation trigger with parameter

Related products:Software Factory
  • February 26, 2019
  • 1 reply
  • 106 views

Arjan Sollie
Thinkwise blogger
While reviewing control procedure templates I continuously keep seeing trigger template in which people declare variables and set them. It would really be helpful if we could automatically check trigger templates for the use of variables, whilst not using a cursor.

Variables are required when using a cursor. In nearly all other scenario's triggers do not require the use of variables. Most times, that these variables are being set, this will lead to errors when the inserted contains more then 1 record.

Therefor I would like to suggest we add a validation (or an option within the code review screen) to check trigger templates for this mistake. This would significantly lower the chance that developers will make this mistake.

Robert Jan de Nie
Thinkwise blogger
Forum|alt.badge.img+5
What about support for a more generic way of implementing static code analysis? There are far more constructs to check or validate then just this one. I wholeheartedly agree with your request, but I think this should have a wider scope.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings