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?
_______________________________________________
DB-SIG maillist  -  DB-SIG@python.org
http://mail.python.org/mailman/listinfo/db-sig

Reply via email to