PyGres fetchone problem
Gerhard Häring
gerhard at bigfoot.de
Mon Feb 18 13:33:44 EST 2002
Richard Papworth wrote in comp.lang.python:
> Playing around with the PyGres module I came across the following
> problem when using fetchone to iterate over a cursor, an idiom that
> I've seen used in many examples:
>
> [cursor.fetchone() doesn't work]
>
> Am I doing something wrong here?
Yes.
1) Using PyGreSQL ;-)
2) Using an old version of PyGreSQL
Get PyGreSQL out of PostgreSQL [1] 7.1.3 or, even better, 7.2. I fixed
this exact bug a few months ago.
[1] Yes, that's correct. The right place to get PyGreSQL is out of the
PostgreSQL sources.
Gerhard
--
mail: gerhard <at> bigfoot <dot> de registered Linux user #64239
web: http://www.cs.fhm.edu/~ifw00065/ OpenPGP public key id 86AB43C0
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')))
More information about the Python-list
mailing list