|
From: Markus H. <mar...@mh...> - 2003-08-26 05:05:41
|
Hi,
I didn't get round to debug the problem, but if the loop below doesn't
work as expected, it's a libdbi bug. dbi_result_next_row() checks
whether currowidx is within the bounds of the result set and throws an
error if it is too high. There is probably a hidden off-by-one
error in the comparisons that we need to fix.
regards,
Markus
Eric Bixby writes:
> However, we switched to using a while loop to use
> fewer lines of code, like this:
>
> while (dbi_result_next_row(result)) {
> column = dbi_result_get_string(result, "A");
> printf("%s\n", column);
> }
>
--
Markus Hoenicka
mar...@ca...
(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de
|