Issue #2 resolved

Fix sqlite3.Cursor.fetchone

ot
created an issue

sqlite3.dbapi2.Cursor.fetchone() doesn't check if GenericCursor.fetchone returns None, in this case _to_python fails. Here is a possible fix.

{{{

!python

def fetchone(self):
    r = GenericCursor.fetchone(self)
    if r is None:
        return None
    else:
        return tuple(_to_python(v) for v in r)

}}}

-- Giuseppe

Comments (1)

  1. Log in to comment