Received: from zeus.polsl.gliwice.pl (root@zeus.polsl.gliwice.pl [157.158.1.3]) by hub.org (8.9.3/8.9.3) with ESMTP id SAA67238 for ; Wed, 28 Jul 1999 18:48:33 -0400 (EDT) (envelope-from kalma@polsl.gliwice.pl) Received: from kermit (root@bmj-ppp0.bmj.com.pl [195.82.160.10]) by zeus.polsl.gliwice.pl (8.8.6 (PHNE_17135)/8.8.6) with ESMTP id AAA12334 for ; Thu, 29 Jul 1999 00:16:11 +0200 (METDST) Received: by kermit id m119Z8A-000hG5C (Debian Smail-3.2.0.101 1997-Dec-17 #2); Wed, 28 Jul 1999 21:12:46 +0200 (CEST) Message-ID: <19990728211246.A1996@polsl.gliwice.pl> Date: Wed, 28 Jul 1999 21:12:46 +0200 From: Marcin Kadziolka To: pgsql-interfaces@postgresql.org Subject: Cursors and move Reply-To: kalma@polsl.gliwice.pl Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93i 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 |