[DB-SIG] PEP 249
Sergey Shepelev
temotor at gmail.com
Wed Nov 11 09:23:52 CET 2009
Hello.
Cursor objects.
Regarding .fetch* methods family when there are no more rows.
It is clearly specified that .fetchone() must return None and
.fetchmany() must return empty sequence.
But for .fetchall() it is unspecified.
Now there is this myconnpy pure Python DB-API implementation for MySQL
and its cursor.fetchall() returns None.
https://bugs.launchpad.net/myconnpy/+bug/480360
Conformance with fetchmany seems good to me. What is official answer on this?
More information about the DB-SIG
mailing list