Re: Incorrect type returned for "time" columns?

Andrew McNamara <[email protected]> Mon, 23 May 2005 15:54:58 +1000
Newsgroups gmane.comp.python.db.pypgsql.user
Message-ID <[email protected]>
>The issue has been fixed in CVS HEAD code base.

That fixed my problem, but I think you also need to handle PG_TIMETZ.

This sort of thing should have been caught by the unittests... which, btw,
appear to be broken with Python 2.4:

    1$ (cd test && python2.3 PgSQLTestCases.py)
    ..................................................................
    ----------------------------------------------------------------------
    Ran 66 tests in 2.019s

    OK
    1$ (cd test && python2.4 PgSQLTestCases.py)
    ...............F..................................................
    ======================================================================
    FAIL: CheckPgInt2 (__main__.PgSQLTestModuleInterface)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "PgSQLTestCases.py", line 219, in CheckPgInt2
        self.failUnless(a == 181.0, 'PgInt2 comparison to Float failed.')
    AssertionError: PgInt2 comparison to Float failed.

    ----------------------------------------------------------------------
    Ran 66 tests in 0.958s

    FAILED (failures=1)

-- 
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click