mirror of
https://github.com/mariadb-corporation/mariadb-connector-python.git
synced 2025-08-11 02:43:15 +00:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user