org.sonar.l10n.oe.rules.rssw-oe.compiler.warning.1688.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sonar-openedge-plugin Show documentation
Show all versions of sonar-openedge-plugin Show documentation
Enables analysis of OpenEdge projects
The newest version!
CONTAINS query cannot be executed on individual elements of arrays (when array is part of a word-index). Query can only be executed on the entire array
Noncompliant Code Example
DEFINE TEMP-TABLE tt
FIELD fld1 AS CHARACTER EXTENT 10
INDEX idx1 IS WORD-INDEX fld1
FOR EACH tt WHERE tt.fld1[1] CONTAINS "foobar":
// Code here...
END.
Compliant Solution
DEFINE TEMP-TABLE tt
FIELD fld1 AS CHARACTER EXTENT 10
INDEX idx1 IS WORD-INDEX fld1
FOR EACH tt WHERE tt.fld1 CONTAINS "foobar":
// Code here...
END.