From: Billy G. A. <bal...@us...> - 2003-12-17 05:27:23
|
Update of /cvsroot/pypgsql/pypgsql/pyPgSQL In directory sc8-pr-cvs1:/tmp/cvs-serv30799/pyPgSQL Modified Files: PgSQL.py Log Message: 16DEC2003 bga - Fixed problem in TypeCache.typecast() when creating large objects from an OID. The problem also occurred in TypeCache.handleArray(). [Bug #855987]. Index: PgSQL.py =================================================================== RCS file: /cvsroot/pypgsql/pypgsql/pyPgSQL/PgSQL.py,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** PgSQL.py 17 Dec 2003 04:57:32 -0000 1.39 --- PgSQL.py 17 Dec 2003 05:27:19 -0000 1.40 *************** *** 33,36 **** --- 33,39 ---- # PgNumeric with a value of zero was quoted to NULL in- | # stead of 0. | + # --- - Fixed problem in TypeCache.typecast() when creating | + # large objects from an OID. The problem also occurred | + # in TypeCache.handleArray(). [Bug #855987]. | # 22NOV2003 bga - Fix problem with PgNumeric.__rmul__() method. | # [Bug #841530] | *************** *** 820,824 **** return value elif type(value) is IntType: ! return PgLargeObject(self.conn, value) else: return PgBytea(value) --- 823,827 ---- return value elif type(value) is IntType: ! return PgLargeObject(self.__comm.conn, value) else: return PgBytea(value) *************** *** 883,887 **** lst[_i] = PgBytea(lst[_i]) else: ! lst[_i] = PgLargeObject(self.conn, int(lst[_i])) return lst --- 886,890 ---- lst[_i] = PgBytea(lst[_i]) else: ! lst[_i] = PgLargeObject(self.__conn.conn, int(lst[_i])) return lst |