From: Marcin Kadziolka <kalma@polsl.gliwice.pl>
To: pgsql-interfaces@postgresql.org
Subject: Cursors and move
Date: Wed, 28 Jul 1999 21:12:46 +0200
Message-ID: <19990728211246.A1996@polsl.gliwice.pl> (raw)
Hi All!
First of all, I'm not sure if it is on-topic here. If not, show a correct
place to me, please.
I've got some problems with cursors and move command.
I write a program using libpq and I have something like this:
BEGIN
DECLARE cur CURSOR FOR SELECT num FROM zlec
FETCH FORWARD 2 IN cur
MOVE BACKWARD ALL IN cur
FETCH FORWARD 2 IN cur
In the last FETCH command PQresultStatus(res) returns PGRES_TUPLES_OK, but
PQntuples(res) returns 0.
Is it a correct behaviour of the move command? Or I missed something?
--
Na razie | Zapraszam na: http://www.polsl.gliwice.pl/~kalma
Marcin |
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-interfaces@postgresql.org
Cc: kalma@polsl.gliwice.pl
Subject: Re: Cursors and move
In-Reply-To: <19990728211246.A1996@polsl.gliwice.pl>
References: <19990728211246.A1996@polsl.gliwice.pl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox