On 22-04-2022 17:51, Dmitry Yemanov wrote:
22.04.2022 14:49, Mark Rotteveel wrote:
I was wondering if this - fetching rowcount of a scrollable cursor -
was already implemented. If so, how do I get it? And if not, when can
I expect it to be implemented?
PR #7083, was left for review but not merged yet. I see it has conflicts
now, I will address them tomorrow and then merge the PR.
I notice that if I get the INF_RECORD_COUNT with op_info_cursor before
the first fetch, I will get the record count, but the subsequent fetch
will fail with a Dynamic SQL Error; SQLDA error; Data type unknown; at
SQLVAR index 0 [SQLState:07002, ISC error code:335544583].
If I get the record count after the first fetch, everything is OK.
This seems to indicate that retrieving the record count somehow sets an
empty SQLDA or something like that, and ignores the one from the first
fetch.
Is this a bug? Should retrieving cursor info before the first fetch be
disallowed by the server? Or maybe something else?
Mark
--
Mark Rotteveel
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel