Re: [Firebird-devel] IBlob::getSegment() and the last segment
29.04.2020 19:11, Alex Peshkoff via Firebird-devel wrote: On my mind they both assume a) Yes. You are right. Sorry. -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
Re: [Firebird-devel] IBlob::getSegment() and the last segment
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
Re: [Firebird-devel] IBlob::getSegment() and the last segment
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. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
[Firebird-devel] IBlob::getSegment() and the last segment
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. In examples folder there are two examples of BLOB reading and one assume behavior a) while second expects b). Which is wrong? -- WBR, SD. Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel