[Libreoffice-bugs] [Bug 118094] Firebird: Support more XResultSet functions

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Dec 10 16:28:09 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=118094

--- Comment #12 from Tamas Bunth <btomi96 at gmail.com> ---
The Firebird API supports moving the cursor only forward. That's why things
like "previous" is not supported, and "relative" and "absolute" are only
partially supported (you cannot move backwards).

They could be implemented though by reopening the result set each time we'd go
backwards, and seek out the requested row. It would be much slower though (user
should be aware of the implementation details).

"isFirst" is already implemented afais.

To implement "isLast", we need to know somehow the total number of rows. After
looking around in the documentation of the C API it seems to me that it cannot
be done, unless we calculate it with a "Select COUNT(...) from ..." kind of
query. That could be expensive though.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20181210/dd74ba75/attachment.html>


More information about the Libreoffice-bugs mailing list