Python DB API (pgdb.py) patch
Started by Patrick Macdonaldabout 24 years ago2 messagespatches
Small patch to correct the default arraysize associated
with the Cursor object's fetchmany() method. The API and
inline documentation state that the default is 1. It
currently defaults to 5.
Patrick
--
Patrick Macdonald
Red Hat Canada
Attachments:
pgdb.patchtext/plain; charset=us-ascii; name=pgdb.patchDownload+2-2
Re: Python DB API (pgdb.py) patch
Patch applied. Thanks.
---------------------------------------------------------------------------
Patrick Macdonald wrote:
Small patch to correct the default arraysize associated
with the Cursor object's fetchmany() method. The API and
inline documentation state that the default is 1. It
currently defaults to 5.Patrick
--
Patrick Macdonald
Red Hat Canada
Index: pgdb.py =================================================================== RCS file: /projects/cvsroot/pgsql/src/interfaces/python/pgdb.py,v retrieving revision 1.14 diff -c -r1.14 pgdb.py *** pgdb.py 2002/05/03 04:11:08 1.14 --- pgdb.py 2002/05/06 15:45:10 *************** *** 170,176 **** self.__source = src self.description = None self.rowcount = -1 ! self.arraysize = 5def close(self): self.__source.close() --- 170,176 ---- self.__source = src self.description = None self.rowcount = -1 ! self.arraysize = 1def close(self):
self.__source.close()
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026