Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#100 typo in pyPgSQL/PgSQL.py

open
nobody
PgSQL (41)
5
2007-12-19
2007-12-19
Luca Falavigna
No

Typo in pyPgSQL/PgSQL.py, line 999, causes this error:
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/pyPgSQL/test.py", line 5, in <module>
res = cur.fetchall()
File "/usr/lib/python2.5/site-packages/pyPgSQL/PgSQL.py", line 3247, in fetchall
_list.append(self.__fetchOneRow())
File "/usr/lib/python2.5/site-packages/pyPgSQL/PgSQL.py", line 2814, in __fetchOneRow
_r.getvalue(self._idx_, _i)))
File "/usr/lib/python2.5/site-packages/pyPgSQL/PgSQL.py", line 890, in typecast
return self.handleArray(colinfo, _list)
File "/usr/lib/python2.5/site-packages/pyPgSQL/PgSQL.py", line 999, in handleArray
if _fvt != PG_INTERVAL:
NameError: global name '_fvt' is not defined

Replacing _fvt with _ftv fixes this.

Discussion