From: Billy G. A. <bal...@us...> - 2003-06-27 03:03:11
|
Update of /cvsroot/pypgsql/pypgsql/pyPgSQL In directory sc8-pr-cvs1:/tmp/cvs-serv5827/pyPgSQL Modified Files: PgSQL.py Log Message: 26JUN2003 bga - Applied patch from Laurent Pinchart to allow _quote to correctly process objects that are sub-classed from String and Long types. Index: PgSQL.py =================================================================== RCS file: /cvsroot/pypgsql/pypgsql/pyPgSQL/PgSQL.py,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** PgSQL.py 17 Jun 2003 01:49:24 -0000 1.33 --- PgSQL.py 27 Jun 2003 03:03:08 -0000 1.34 *************** *** 30,33 **** --- 30,36 ---- # Date Ini Description | # --------- --- ------------------------------------------------------- | + # 26JUN2003 bga - Applied patch from Laurent Pinchart to allow _quote | + # to correctly process objects that are sub-classed | + # from String and Long types. | # 05JUN2003 bga - Change the name of the quoting function back to | # _quote. Variables named like __*__ should be restrict | *************** *** 2243,2249 **** elif type(value) is DateTimeDeltaType: return "'%s'" % dateTimeDelta2Interval(value) ! elif type(value) is StringType: return PgQuoteString(value) ! elif type(value) is LongType: return str(value) else: --- 2246,2252 ---- elif type(value) is DateTimeDeltaType: return "'%s'" % dateTimeDelta2Interval(value) ! elif isinstance(value, StringType): return PgQuoteString(value) ! elif isinstance(value, LongType): return str(value) else: *************** *** 2593,2597 **** "Unlink of large object failed - Connection is not open." ! if self.version.post70 or not self.inTransaction: raise NotSupportedError, \ "unlink of a PostgreSQL Large Object in a transaction" --- 2596,2600 ---- "Unlink of large object failed - Connection is not open." ! if not self.version.post70 and self.inTransaction: raise NotSupportedError, \ "unlink of a PostgreSQL Large Object in a transaction" |