
Co-authored-by: Amélie Renard <44666826+amelie-renard-sonarsource@users.noreply.github.com>
30 lines
700 B
Plaintext
30 lines
700 B
Plaintext
== Why is this an issue?
|
|
|
|
The repetition of a prefix operator (``+``, ``++-++``, or ``++NOT++``) is usually a typo. The second operator invalidates the first one:
|
|
|
|
[source,sql]
|
|
----
|
|
IF NOT ( NOT foo = 5 ) THEN -- Noncompliant: equivalent to "foo = 5"
|
|
value := ++1; -- Noncompliant: equivalent to "+1"
|
|
END IF;
|
|
----
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
include::../message.adoc[]
|
|
|
|
'''
|
|
== Comments And Links
|
|
(visible only on this page)
|
|
|
|
=== on 1 Feb 2019, 22:47:11 Alexandre Gigleux wrote:
|
|
https://www.periscopedata.com/blog/sql-symbol-cheatsheet
|
|
|
|
include::../comments-and-links.adoc[]
|
|
|
|
endif::env-github,rspecator-view[]
|