shivaprasath143
New Member
What is transaction Leak ?
/* badcode.p
*/
find first customer.
update name.
run something.p
/* bettercode.p
*/
define variable cNum as integer no-undo.
define variable cName as character no-undo.
procedure updName:
define input parameter xNum as integer no-undo.
define input parameter xName as character no-undo.
define buffer customer for customer.
do for customer transaction:
find customer exclusive-lock where custNum = xNum no-error.
if available( customer ) then customer.name = xName.
end.
return.
end.
update cNum cName.
run updName( cNum, cName ).
run something.p