FETCH from scroll cursor does not return count in libpq PQcmdStatus

From: "Knut P(dot) Lehre" <knutpl(at)broadpark(dot)no>
To: pgsql-hackers(at)postgresql(dot)org
Subject: FETCH from scroll cursor does not return count in libpq PQcmdStatus
Date: 2007-02-18 16:21:02
Message-ID: a8e2e4201eff.45d88afe@broadpark.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Using libpq with pg 8.2.1 on WinXP Pro SP2.
After a PQExec with a fetch from a scroll cursor, I only get "FETCH" from PQcmdStatus, and not "FETCH count" as described in the 8.2.1 docs. However, PQntuples returns the number of fetched rows. If I replace the FETCH by a MOVE, PQcmdStatus returns "MOVE count".
The discussion we had on irc #postgresql suggested that this might be a bug, or have we missed some points regarding the use of scroll cursors?

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2007-02-18 16:58:24 Re: pgsql: Better fix for determining minimum and maximum int64 values that
Previous Message Pavel Stehule 2007-02-18 15:38:16 Re: return varchar from C function