Fix for CONPY-213

Additionally to the fix for CONPY-214 (which fixed the iterator), we
need to check that converter will not be called with EOF (None).
This commit is contained in:
Georg Richter
2022-07-07 13:42:34 +02:00
parent 687ba165cc
commit c30b597ba9
2 changed files with 13 additions and 2 deletions

View File

@ -353,7 +353,7 @@ class Cursor(mariadb._mariadb.cursor):
if not self.field_count:
raise mariadb.ProgrammingError("Cursor doesn't have a result set")
row= super().fetchone()
if self._connection._converter:
if self._connection._converter and row:
l= list(row)
if not self._description:
self._description= super().description