Vlad Khorsun wrote 28.06.2024 21:09:
>> And I wonder if `fetch` should be reset to false to avoid receiving of the
>> second record from the cursor instead of expected first one.
>
> No, it shouldn't. First record could be different after query restart.
But this routine is called only if `!firstRowFetched` so I thought that it is
supposed to return the first record, not second one.
doExecute() when called with non-nullptr `outMsg` (which is exactly the case
on second loop iteration) performs fetch (call to JRD_receive()) of the first
record itself and then, if `fetch` is still true, JRD_receive() is called once
again thus delivering second record to client. What do I miss?
--
WBR, SD.