[Firebird-devel] IResultSet::isEof() and isBof()

2020-03-18 Thread Dimitry Sibiryakov

  Hello, All.

  What these methods are supposed to return before call of fetchNext()?
  What they should return if the result set is empty after fetchNext()?

--
  WBR, SD.


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


Re: [Firebird-devel] IResultSet::isEof() and isBof()

2020-03-18 Thread Dmitry Yemanov

18.03.2020 18:52, Dimitry Sibiryakov wrote:


   What these methods are supposed to return before call of fetchNext()?


isBof() == true, isEof() == false


   What they should return if the result set is empty after fetchNext()?


isBof() == false, isEof() == true


Dmitry


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


Re: [Firebird-devel] IResultSet::isEof() and isBof()

2020-03-18 Thread Dimitry Sibiryakov

18.03.2020 17:25, Dmitry Yemanov wrote:

   What they should return if the result set is empty after fetchNext()?


isBof() == false, isEof() == true


  Ok, though ADO and others used to set them both to true...

  And if fetchFirst/Last() returned RESULT_NO_DATA, what should be the values of the 
flags afterward?



--
  WBR, SD.


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