rspec/rules/S1498/rule.adoc

16 lines
346 B
Plaintext
Raw Normal View History

== Why is this an issue?
2021-01-27 13:42:22 +01:00
Using the ``++LIKE++`` operator in SQL ``++WHERE++`` conditions can highly impact the performance of the request. The use of this operator should be strongly indicated.
2020-06-30 12:47:33 +02:00
=== Noncompliant code example
2020-06-30 12:47:33 +02:00
2022-02-04 17:28:24 +01:00
[source,text]
2020-06-30 12:47:33 +02:00
----
SELECT *
FROM doktl
INTO TABLE text_tab
WHERE doktext LIKE srch_str.
----