Re: Python DB API (pgdb.py) patch - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: Python DB API (pgdb.py) patch
Date
Msg-id 200206031742.g53HgDX17296@candle.pha.pa.us
Whole thread Raw
In response to Python DB API (pgdb.py) patch  (Patrick Macdonald <patrickm@redhat.com>)
List pgsql-patches
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 = 5
>
>       def close(self):
>           self.__source.close()
> --- 170,176 ----
>           self.__source = src
>           self.description = None
>           self.rowcount = -1
> !         self.arraysize = 1
>
>       def close(self):
>           self.__source.close()

>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org

--
  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

pgsql-patches by date:

Previous
From: "William K. Volkman"
Date:
Subject: psql Segfaults shortly after doing variable substitution
Next
From: "Dave Page"
Date:
Subject: Patch for current_schemas to optionally include implicit schemas