Re: Python DB API (pgdb.py) patch

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Patrick Macdonald <patrickm(at)redhat(dot)com>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Python DB API (pgdb.py) patch
Date: 2002-06-03 17:42:13
Message-ID: 200206031742.g53HgDX17296@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Dave Page 2002-06-03 19:09:26 Patch for current_schemas to optionally include implicit schemas
Previous Message William K. Volkman 2002-06-03 16:49:05 psql Segfaults shortly after doing variable substitution