Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check that buffer is correctly accessed in WHERE clause rule #1126

Open
Ton-Pe opened this issue May 28, 2024 · 1 comment
Open

Check that buffer is correctly accessed in WHERE clause rule #1126

Ton-Pe opened this issue May 28, 2024 · 1 comment

Comments

@Ton-Pe
Copy link

Ton-Pe commented May 28, 2024

Rule: BufferUsageInWhereClause
Following find statement raises an issue: "WHERE clause does not have any reference to buffer ProdRes"

 FIND FIRST ProdOper OF ProdOrder WHERE
          CAN-FIND(FIRST ProdRes OF ProdOper WHERE  ProdRes.Qtyrep = YES).

Looks like that the rule does not recognize the OF statement that is used in the CAN-FIND part of the WHERE clause.

If I write the can-find without OF, issues is not raised

FIND FIRST ProdOper OF ProdOrder WHERE
          CAN-FIND(FIRST ProdRes WHERE ProdRes.PrOrderNum = ProdOper.PrOrderNum AND ProdRes.Qtyrep = YES).
@gquerret gquerret changed the title Check that buffer is correctly accessed in WHERE clause rule - false positive Check that buffer is correctly accessed in WHERE clause rule May 28, 2024
@gquerret
Copy link
Contributor

Thanks for the report, will be fixed !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants