Re: Missing typecasters [was: Decimal]

Federico Di Gregorio <fog-NGVKUo/i/[email protected]> Wed, 14 Apr 2010 09:01:07 +0200
Newsgroups gmane.comp.python.db.psycopg.devel
Message-ID <[email protected]>
On 14/04/2010 02:11, Daniele Varrazzo wrote:
> On Tue, Apr 13, 2010 at 11:44 PM, Daniele Varrazzo
> <[email protected]> wrote:
>> > On Tue, Apr 13, 2010 at 11:24 PM, Daniele Varrazzo
>> > <[email protected]> wrote:
>> >
>>> >> Federico, I see DECIMAL is not imported in the extensions module. I'll
>>> >> check if there are other missing types and provide a patch for them.
>> >
>> > Other than DECIMAL, the time-related typecaster are missing: PYDATE,
>> > PYDATETIME, PYINTERVAL, PYTIME (and MX equivalent).
>> >
>> > Should they be imported too, if available?
> A few patches are available in my fix22 branch. Please check that MX*
> typecasters are imported correctly: I don't have mx installed here so
> they are not compiled/imported in _psycopg.

Merged, thanks.

I also merged everything else from the fix22 branch (the code seemed
fine to me) but I didn't check the tests and now one test fails in a
curious way; are you sure you committed everything? :)

ERROR: test_flush_on_write (test_async.AsyncTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fog/Workspaces/psycopg/psycopg/tests/test_async.py", line
311, in test_flush_on_write
    self.wait(stub)
AttributeError: 'AsyncTests' object has no attribute 'wait'

-- 
Federico Di Gregorio                                       fog-NGVKUo/i/[email protected]
  Spesso crescere ed andare a vivere da soli รจ l'unico modo di restare
   bambini.                                             -- Alice Fontana

_______________________________________________
Psycopg mailing list
Psycopg-IAPFreCvJWPBWskQ1e/[email protected]
http://lists.initd.org/mailman/listinfo/psycopg
signature.asc (application/pgp-signature, 262 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvFaDMACgkQvcCgrgZGjet/rQCdFw9UH/W6oHDpP4Bdo7XSvHGC
1+UAnR+sLRBLjtil35VNn6sp0AJdMQ7F
=zasm
-----END PGP SIGNATURE-----