rspec/rules/S1500/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
606 B
Plaintext

== Why is this an issue?
``++DISTINCT++`` operator causes the ``++SELECT++`` statement to avoid the SAP buffering and to read directly from the database and not from the buffer on the application server.
=== Noncompliant code example
[source,abap]
----
SELECT DISTINCT carrid
FROM spfli
INTO count
WHERE cityto = 'NEW YORK'.
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
=== Message
Double check that usage of "DISTINCT" operator is required as it leads to bypass SAP buffering.
endif::env-github,rspecator-view[]