mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-01-31 09:24:07 +03:00
psycopg1 .dictfetchone() fixed (closes #27).
This commit is contained in:
parent
90f1a13431
commit
d7b10f4a9c
|
@ -1,3 +1,10 @@
|
|||
2005-06-18 Federico Di Gregorio <fog@initd.org>
|
||||
|
||||
* lib/psycopg1.py: fixed .dictfetchrow() to return None if fetchone()
|
||||
returns None instead of raising an exception.
|
||||
|
||||
* ZPsycopgDA/icons: replaced corrupted icons with good ones.
|
||||
|
||||
2005-06-13 Federico Di Gregorio <fog@initd.org>
|
||||
|
||||
* psycopg/psycopgmodule.c (psyco_connect): changed the port keyword
|
||||
|
|
|
@ -65,7 +65,10 @@ class cursor(_2cursor):
|
|||
|
||||
def dictfetchone(self):
|
||||
row = _2cursor.fetchone(self)
|
||||
if row:
|
||||
return self.__build_dict(row)
|
||||
else:
|
||||
return row
|
||||
|
||||
def dictfetchmany(self, size):
|
||||
res = []
|
||||
|
|
Loading…
Reference in New Issue
Block a user