From: Billy G. A. <bal...@us...> - 2005-05-21 01:31:48
|
Update of /cvsroot/pypgsql/pypgsql/pyPgSQL In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15921/pyPgSQL Modified Files: PgSQL.py Log Message: 20MAY2005 bga - Fixed code so that a DateTimeDelta is returned for a PostgreSQL time datatype. Index: PgSQL.py =================================================================== RCS file: /cvsroot/pypgsql/pypgsql/pyPgSQL/PgSQL.py,v retrieving revision 1.48 retrieving revision 1.49 diff -C2 -d -r1.48 -r1.49 *** PgSQL.py 16 May 2005 03:37:56 -0000 1.48 --- PgSQL.py 21 May 2005 01:31:23 -0000 1.49 *************** *** 30,33 **** --- 30,35 ---- # Date Ini Description | # --------- --- ------------------------------------------------------- | + # 20MAY2005 bga - Fixed code so that a DateTimeDelta is returned for a | + # PostgreSQL time datatype. | # 15MAY2005 bga - A change to the datetime parsing changed the default | # datetime object from localtime to UTC. This update | *************** *** 925,930 **** if _ftv == PG_INTERVAL: return self.interval2RelativeDateTime(value) else: ! if (useUTCtimeValue): return DateTime.Parser.DateTimeFromString(value) else: --- 927,934 ---- if _ftv == PG_INTERVAL: return self.interval2RelativeDateTime(value) + elif _ftv == PG_TIME: + return DateTime.Parser.TimeFromString(value) else: ! if useUTCtimeValue or _ftv == PG_DATE: return DateTime.Parser.DateTimeFromString(value) else: |