From: Johann Zuschlag <zuschlag2@online.de>
To: dpage@vale-housing.co.uk
Cc: pgsql-odbc@postgresql.org
Subject: cursor control
Date: Fri, 07 Oct 2005 16:52:43 +0200
Message-ID: <43468BBB.3000402@online.de> (raw)
In-Reply-To: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4CC2F9C@ratbert.vale-housing.co.uk>
References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4CC2F9C@ratbert.vale-housing.co.uk>
Hi Dave,
I don't understand the following in qresult.c:
503: /* Speed up access */
504: int fetch_count = self->fetch_count;
And then:
515: if (fetch_count < fetch_count)
516: {
517: /* return a row from cache */
518: mylog("next_tuple: fetch_count < fcount:
returning tuple %d, fcount = %d\n", fetch_count, num_backend_rows);
519: self->tupleField = the_tuples + (fetch_count * self->num_fields); /* next row */
520: self->fetch_count++;
521: return TRUE;
522: }
523: else if (self->num_backend_rows < self->cache_size)
Maybe I'm misled. But I assume (fetch_count < fetch_count) will never
become true.
Regards
Johann
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-odbc@postgresql.org
Cc: zuschlag2@online.de, dpage@vale-housing.co.uk
Subject: Re: cursor control
In-Reply-To: <43468BBB.3000402@online.de>
References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4CC2F9C@ratbert.vale-housing.co.uk> <43468BBB.3000402@online.de>
* 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