rspec/rules/S1496/abap/rule.adoc

17 lines
373 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
``++UPDATE dbtab SET ...++`` without a ``++WHERE++`` condition changes all the entries of the table. Check whether dataset to be changed can be limited by a suitable ``++WHERE++`` condition.
2021-04-28 16:49:39 +02:00
== Noncompliant Code Example
----
UPDATE COUNTRIES SET NAME=country_name.
----
2021-04-28 16:49:39 +02:00
== Compliant Solution
----
UPDATE COUNTRIES SET NAME=country_name WHERE CODE=country_code.
----