Fix for fetchone() and fetchmany() in Python interface

From: Gerhard Häring <haering_python(at)gmx(dot)de>
To: pgsql-patches(at)postgresql(dot)org
Subject: Fix for fetchone() and fetchmany() in Python interface
Date: 2001-08-13 17:03:37
Message-ID: 20010813190335.A3604@lilith.hqd-internal
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

This patch fixes the well-known but unfixed bug that fetchone() always returns
the first result in the DB-API compliant wrapper. It turned out that the bug
was way down in the C code.

Gerhard
--
mail: gerhard <at> bigfoot <dot> de registered Linux user #64239
web: http://www.cs.fhm.edu/~ifw00065/ public key at homepage
public key fingerprint: DEC1 1D02 5743 1159 CD20 A4B6 7B22 6575 86AB 43C0
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))

Attachment Content-Type Size
PyGreSQL-fetchone-bugfix.dif text/plain 899 bytes

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Ian Lance Taylor 2001-08-13 17:08:46 Re: Re: [PATCHES] Select parser at runtime
Previous Message Greg Zoller 2001-08-13 16:35:33 Re: JDBC Array Support, Take 2