Bug #7317
accumulator using another accumulator as expression
Start date:
Due date:
% Done:
100%
billable:
No
vendor_id:
GCD
case_num:
version:
History
#2 Updated by Constantin Asofiei about 1 year ago
- % Done changed from 0 to 100
- Assignee set to Constantin Asofiei
- Status changed from New to Review
4GL allows an accumulator function to be used in the expression of an accumulator statement:
def temp-table tt2 field f1 as int field f2 as int. def var i as int. for each tt2 break by f1: accumulate f2 (total by f1). i = (accum total by f1 f2). accumulate (accum total by f1 f2) (total). end. procedure proc1. for each tt2 break by f1: accumulate f2 (total by f1). i = (accum total by f1 f2). accumulate (accum total by f1 f2) (total). end. end.
The problem here is that the BY expr
definition must follow the accumulator definition.
Fixed in 7199c/14566
#3 Updated by Greg Shah about 1 year ago
Eric: Please review.
#4 Updated by Eric Faulhaber about 1 year ago
- Status changed from Review to Test
Code review 7199c/14566: the changes look good. This should go into wider testing.
#5 Updated by Constantin Asofiei 12 months ago
7199c was merged to trunk rev 14610 and archived