| From: | Byron Nikolaidis <byron(dot)nikolaidis(at)home(dot)com> |
|---|---|
| To: | kalma(at)polsl(dot)gliwice(dot)pl |
| Cc: | pgsql-interfaces(at)postgreSQL(dot)org |
| Subject: | Re: [INTERFACES] Cursors and move |
| Date: | 1999-07-29 00:45:42 |
| Message-ID: | 379FA436.631803B3@home.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-interfaces |
Marcin Kadziolka wrote:
>
> 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?
>
The cursors have never really worked right. Especially the move seems
wrong, once you go off the edge, you're screwed.
Dave Hartwig was close to a fix for this at one point, but he gave up.
Byron
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Nicolas Aragon | 1999-07-29 06:16:10 | Re: [INTERFACES] libpq AND C++ Builder |
| Previous Message | Marcin Kadziolka | 1999-07-28 19:12:46 | Cursors and move |