False positive on bufdbfunc

Project:Prolint Issue Tracker
Component:Rules
Category:bug report
Priority:normal
Assigned:jurjen
Status:closed
Description

In the following code Prolint 70 gives 'no buffer defined for table Customer' for the line (BUFFER P_bCustomer FOR Customer): and again for the line FOR EACH bCustomer NO-LOCK:


FUNCTION FnOops RETURNS INTEGER
(BUFFER P_bCustomer FOR Customer):
/*------------------------------------------------------------------------------
Purpose: None at all
------------------------------------------------------------------------------*/
DEFINE VARIABLE nCustomer AS INTEGER NO-UNDO.

FOR EACH P_bCustomer NO-LOCK:
nCustomer = nCustomer + 1.
END.

RETURN nCustomer.

END FUNCTION.


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jurjen's picture

#1

Confirmed. Sorry, I forgot to look at buffer parameters....


jurjen's picture

#2

Assigned to:Anonymous» jurjen
Status:active» fixed

fixed, committed to subversion as revision 364


#3

Status:fixed» closed