Re: Decimal

Federico Di Gregorio <fog-NGVKUo/i/[email protected]> Sun, 16 May 2010 11:02:17 +0200
Newsgroups gmane.comp.python.db.psycopg.devel
Message-ID <[email protected]>
On 06/05/2010 13:40, Daniele Varrazzo wrote:
>>>>> >>>> None <type 'NoneType'>
>>>>> >>>> Exception TypeError: 'expected string or Unicode object, NoneType
>> > found'
> You are right, I'm very sorry for reading the message so late.
> 
> I don't know what's going wrong with the FLOAT typecaster, it deserves
> some investigation. You can use a regular Python function to take care
> of the NULL case:

This is now fixed.

-- 
Federico Di Gregorio                                       fog-NGVKUo/i/[email protected]
 In science one tries to tell people, in such a way as to be understood
  by everyone, something that no one ever knew before. But in poetry,
  it's the exact opposite.                                 -- Paul Dirac

_______________________________________________
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/

iEYEARECAAYFAkvvtKAACgkQvcCgrgZGjesiKgCZAZO+WpcrxEmcNbsDw+pIk5s4
mOwAoIvnrngYmGvPjnNCc78qSRKoOxL4
=2qyi
-----END PGP SIGNATURE-----