Python DB API (pgdb.py) patch

Поиск
Список
Период
Сортировка
Искать

Python DB API (pgdb.py) patch

От:
Patrick Macdonald <patrickm@redhat.com>
Дата:

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 CanadaIndex: 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()

Re: Python DB API (pgdb.py) patch

От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:

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
FAQ