Update of /cvsroot/pypgsql/pypgsql/pyPgSQL
In directory sc8-pr-cvs1:/tmp/cvs-serv2996/pyPgSQL
Modified Files:
PgSQL.py
Log Message:
06DEC2002 bga - Corrected problem found by Adam Buraczewski in the
__setupTransaction function.
- Allow both 'e' and 'E' to signify an exponet in the PgNumeric
constructor.
Index: PgSQL.py
===================================================================
RCS file: /cvsroot/pypgsql/pypgsql/pyPgSQL/PgSQL.py,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** PgSQL.py 5 Dec 2002 04:22:02 -0000 1.27
--- PgSQL.py 6 Dec 2002 05:20:12 -0000 1.28
***************
*** 30,33 ****
--- 30,37 ----
# Date Ini Description |
# --------- --- ------------------------------------------------------- |
+ # 06DEC2002 bga - Corrected problem found by Adam Buraczewski in the |
+ # __setupTransaction function. |
+ # - Allow both 'e' and 'E' to signify an exponet in the |
+ # PgNumeric constructor. |
# 04DEC2002 bga - Correct some problems that were missed in yesterday's |
# fixes (Thanks, Adam, for the help with the problems) |
***************
*** 1254,1258 ****
# Ensure that _e and _v contains a sane value
if _e < 0:
! _e = len(_v)
if _d < 0:
--- 1258,1264 ----
# Ensure that _e and _v contains a sane value
if _e < 0:
! _e = _v.rfind('E')
! if _e < 0:
! _e = len(_v)
if _d < 0:
***************
*** 2350,2353 ****
--- 2356,2360 ----
self.conn.query("BEGIN WORK")
if self.TransactionLevel != "":
+ _nl = len(self.notices)
self.conn.query('SET TRANSACTION ISOLATION LEVEL %s' %
self.TransactionLevel)
|