On 2020-04-29 20:11, Alex Peshkoff via Firebird-devel wrote:
On 2020-04-29 18:09, Dmitry Sibiryakov wrote:
Hello, All.
What should be the behavior of getSegment() reading the last
segment of the BLOB?
a) Return some data of non-zero length and return RESULT_OK, next
call shall return zero length data and RESULT_NO_DATA;
b) Return some data of non-zero length and return RESULT_NO_DATA.
a)
In examples folder there are two examples of BLOB reading and one
assume behavior a) while second expects b). Which is wrong?
On my mind they both assume a)
And therefore work correctly.
PS. I was thinking about adding return value RESULT_LAST_DATA in order
to save one call to blob and following b) logic regarding data, but
that's for the future.
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel