sonar-openedge
sonar-openedge copied to clipboard
WHERE clause contains reference to... Call to BUFFER-FIELD
The following code snippet flags WHERE clause contains reference to... Call to BUFFER-FIELD
DEFINE TEMP-TABLE ttfoo NO-UNDO
FIELD cc AS CHARACTER
.
DEFINE VARIABLE hb AS HANDLE NO-UNDO.
hb = TEMP-TABLE ttfoo:DEFAULT-BUFFER-HANDLE.
FOR EACH ttfoo
WHERE hb:BUFFER-FIELD( 'cc':u ):BUFFER-VALUE MATCHES ttfoo
:
//
END.
When changing to hb::cc (which I cannot use since the field name is a variable) the rule is not triggered.
:get-attribute on an x-noderef is also triggering this rule.
Same issue with hw:get-browse-column(1)
Same issue with hx:get-attribute( 'foo' )