X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 89135DA57E for ; Fri, 7 Oct 2005 11:52:37 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 58632-04 for ; Fri, 7 Oct 2005 14:52:27 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.183]) by svr1.postgresql.org (Postfix) with ESMTP id 9E6F1D8833 for ; Fri, 7 Oct 2005 11:52:26 -0300 (ADT) Received: from p548F255F.dip0.t-ipconnect.de [84.143.37.95] (helo=[84.143.37.95]) by mrelayeu.kundenserver.de with ESMTP (Nemesis), id 0ML2Dk-1ENtaH3OAh-000386; Fri, 07 Oct 2005 16:52:29 +0200 Message-ID: <43468BBB.3000402@online.de> Date: Fri, 07 Oct 2005 16:52:43 +0200 From: Johann Zuschlag User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: dpage@vale-housing.co.uk Cc: pgsql-odbc@postgresql.org Subject: cursor control References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de login:412dbd38c76468b7d75e624f8951f259 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.013 required=5 tests=[AWL=0.013] X-Spam-Level: X-Archive-Number: 200510/25 X-Sequence-Number: 6127 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