rspec/rules/S2542/plsql/rule.adoc
2022-02-04 16:28:24 +00:00

33 lines
601 B
Plaintext

``++SELECT++`` queries that return too many columns may be complex or difficult to maintain.
This rule identifies queries that ``++SELECT++`` more than the specified number of columns.
== Noncompliant Code Example
With a threshold of 6:
[source,sql]
----
BEGIN
SELECT id, name, firstname, gender, height, weight, age -- Noncompliant
INTO peopleArray
FROM people
WHERE age > 60;
END;
/
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
include::parameters.adoc[]
endif::env-github,rspecator-view[]