sonar-openedge icon indicating copy to clipboard operation
sonar-openedge copied to clipboard

WHERE clause contains reference to... Call to BUFFER-FIELD

Open stefandrissen opened this issue 3 years ago • 2 comments

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.

stefandrissen avatar Mar 10 '22 07:03 stefandrissen

Same issue with hw:get-browse-column(1)

stefandrissen avatar Nov 17 '23 10:11 stefandrissen

Same issue with hx:get-attribute( 'foo' )

stefandrissen avatar Nov 26 '23 22:11 stefandrissen