pgdb bug?
Gerhard Häring
g.haering at ___skynamics.com.invalid
Thu Sep 20 14:08:44 EDT 2001
Roman Suzi wrote:
> Well, here is the fragment which works differently
> when cur is from MySQLdb or pgdb modules:
>
> ...
> cur.execute("""SELECT name, path FROM modules;""")
> while 1:
> record = cur.fetchone()
> if not record:
> break
> print record
> ...
>
>
> With MySQLdb all records are printed (158 records).
> With the pgdb - 1st record is printed 158 times ;-)
>
> .fetchall() works as expected.
Yes, I've fixed that one and submitted the patch. The fixed version of
PyGreSQL is available within PostgreSQL 7.1.3.
Gerhard
--
Gerhard Häring
skynamics AG
g.haering at skynamics.com
http://www.skynamics.com
More information about the Python-list
mailing list