From 7bb113c6eb05abfd23e8ca544da8e70fa1cff790 Mon Sep 17 00:00:00 2001 From: adustman Date: Sat, 8 Apr 2000 03:07:57 +0000 Subject: [PATCH] A teensy optimization. --- mysql/MySQLdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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