OSDN Git Service

Small patch to correct the default arraysize associated
authorBruce Momjian <bruce@momjian.us>
Mon, 3 Jun 2002 17:42:11 +0000 (17:42 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 3 Jun 2002 17:42:11 +0000 (17:42 +0000)
with the Cursor object's fetchmany() method.  The API and
inline documentation state that the default is 1.  It
currently defaults to 5.

Patrick Macdonald

src/interfaces/python/pgdb.py

index 7c6b89d..6ae63b9 100644 (file)
@@ -170,7 +170,7 @@ class pgdbCursor:
                self.__source = src
                self.description = None
                self.rowcount = -1
-               self.arraysize = 5
+               self.arraysize = 1
 
        def close(self):
                self.__source.close()