diff --git a/mysql/MySQLdb.py b/mysql/MySQLdb.py index 2fa2114..77435fc 100644 --- a/mysql/MySQLdb.py +++ b/mysql/MySQLdb.py @@ -283,7 +283,7 @@ class CursorStoreResultMixIn: def fetchall(self): """Fetchs all available rows from the cursor.""" - result = self.__rows[self.__pos:] + result = self.__pos and self.__rows[self.__pos:] or self.__rows self.__pos = len(self.__rows) return result