[Firebird-devel] IBlob::getSegment() and the last segment

2020-04-29 Thread Dmitry Sibiryakov

  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


Re: [Firebird-devel] New API and scrollable cursors

2020-04-27 Thread Dmitry Sibiryakov

27.04.2020 15:23, Pavel Cisar wrote:

Or is the impression that this feature is not actually implemented really true?


  Yes it is true though should work in embedded mode.


--
  WBR, SD.


Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


[Firebird-devel] Returning temporary variable by reference

2020-04-24 Thread Dmitry Sibiryakov

  Hello, All.

  This warning in master looks dangerous:


src\common\classes\tree.h(358): warning C4172: returning address of local 
variable or temporary




--
  WBR, SD.


Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel