From: Billy G. A. <bal...@us...> - 2003-12-17 04:57:36
|
Update of /cvsroot/pypgsql/pypgsql/pyPgSQL In directory sc8-pr-cvs1:/tmp/cvs-serv26408/pyPgSQL Modified Files: PgSQL.py Log Message: 16DEC2003 bga - Fixed problem with PgNumeric._quote() method where a PgNumeric with a value of zero was quoted to NULL in stead of 0. Index: PgSQL.py =================================================================== RCS file: /cvsroot/pypgsql/pypgsql/pyPgSQL/PgSQL.py,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** PgSQL.py 22 Nov 2003 05:35:47 -0000 1.38 --- PgSQL.py 17 Dec 2003 04:57:32 -0000 1.39 *************** *** 30,34 **** # Date Ini Description | # --------- --- ------------------------------------------------------- | ! # 22NOV2003 bga - Fix problem with PgNumeric.__rmul__ method(). | # [Bug #841530] | # 22OCT2003 bga - Completed the cleanup of parameter handling in the | --- 30,37 ---- # Date Ini Description | # --------- --- ------------------------------------------------------- | ! # 16DEC2003 bga - Fixed problem with PgNumeric._quote() method where a | ! # PgNumeric with a value of zero was quoted to NULL in- | ! # stead of 0. | ! # 22NOV2003 bga - Fix problem with PgNumeric.__rmul__() method. | # [Bug #841530] | # 22OCT2003 bga - Completed the cleanup of parameter handling in the | *************** *** 1675,1679 **** def _quote(self, forArray=0): ! if self.__v: if forArray: return '"%s"' % self.__fmtNumeric() --- 1678,1682 ---- def _quote(self, forArray=0): ! if self.__v != None: if forArray: return '"%s"' % self.__fmtNumeric() |