All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.oe.rules.rssw-oe.compiler.warning.1688.html Maven / Gradle / Ivy

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.




© 2015 - 2024 Weber Informatics LLC | Privacy Policy