30.09.2018 4:52, Adriano dos Santos Fernandes wrote:
- Instead of agg_finished, adjust SUSPEND (probably with another keyword) to somehing like: SUSPEND WHEN FETCHED DO <statement> WHEN FINISHED DO <statement>
Isn't it how FETCH is used to be used: WHILE (1 = 1) DO BEGIN FETCH C INTO :RNAME; IF (ROW_COUNT = 0) THEN LEAVE; END -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel