From: Billy G. A. <bal...@us...> - 2002-02-04 02:12:06
|
Update of /cvsroot/pypgsql/pypgsql In directory usw-pr-cvs1:/tmp/cvs-serv2474 Modified Files: pgresult.c Log Message: 03FEB2002 bga Change the point at which an OID is tested to see if it is a Large Object from 1700 to 16383. Index: pgresult.c =================================================================== RCS file: /cvsroot/pypgsql/pypgsql/pgresult.c,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** pgresult.c 2001/10/26 06:05:52 1.16 --- pgresult.c 2002/02/04 02:12:04 1.17 *************** *** 29,32 **** --- 29,35 ---- | Date Ini Description | | --------- --- ------------------------------------------------------- | + | 03FEB2002 bga Change the constant that is used to determine when to | + | check an OID to see if it is a Large Object form 1700 | + | (PG_NUMERIC) to 16383 (MAX_RESERVED_OID). | | 26OCT2001 bga [Bug #474771] Found and plugged a memory leak in the | | PgResult_New() function. An object for the value of | *************** *** 477,482 **** | this OID exist in the table. | | | ! | Note: Any OID <= 1700 (PG_NUMERIC) can not be a Large | ! | Object. | | | | Note: We cache weither or not an OID is a LargeObject | --- 480,485 ---- | this OID exist in the table. | | | ! | Note: Any OID <= MAX_RESERVED_OID (16383) can not be | ! | a Large Object. | | | | Note: We cache weither or not an OID is a LargeObject | *************** *** 489,497 **** return valueObj; ! if (PyInt_AS_LONG(valueObj) <= PG_NUMERIC) break; /*******************************************************\ ! | Check the cache to see if we already looked up the | | in the database. If we have, used the cached results.| \*******************************************************/ --- 492,500 ---- return valueObj; ! if (PyInt_AS_LONG(valueObj) <= MAX_RESERVED_OID) break; /*******************************************************\ ! | Check the cache to see if we already looked up the OID| | in the database. If we have, used the cached results.| \*******************************************************/ |