pgdb bug?
Roman Suzi
rnd at onego.ru
Thu Sep 20 13:16:14 EDT 2001
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.
Sincerely yours, Roman Suzi
--
_/ Russia _/ Karelia _/ Petrozavodsk _/ rnd at onego.ru _/
_/ Thursday, September 20, 2001 _/ Powered by Linux RedHat 6.2 _/
_/ "A big enough hammer fixes anything" _/
More information about the Python-list
mailing list