rspec/rules/S1502/abap/rule.adoc
Fred Tingaud 16f6c0aecf
Inline adoc when include has no additional value (#1940)
Inline adoc files when they are included exactly once.

Also fix language tags because this inlining gives us better information
on what language the code is written in.
2023-05-25 14:18:12 +02:00

28 lines
585 B
Plaintext

== Why is this an issue?
``++SQL COUNT(..), MIN(..), MAX(..), SUM(..), AVG(..)++`` aggregate functions cause the SAP table buffer to be bypassed, so the use of these functions can lead to performance issues.
=== Noncompliant code example
[source,abap]
----
SELECT COUNT(*)
FROM persons
INTO count
WHERE city = 'NEW YORK'.
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
=== Message
Double check that use of "XXX(...)" SQL function is strongly indicated here.
endif::env-github,rspecator-view[]