Re: decimal.Decimal('nan') not correctly quoted
Federico Di Gregorio <fog-NGVKUo/i/[email protected]> Sun, 21 Feb 2010 01:05:58 +0100
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Message-ID | <[email protected]> |
On 13/11/2009 17:06, paftek wrote:
> Hi there,
>
> Unlike float('nan'), decimal.Decimal('nan') is not quoted correctly :
>
>>>> curs.mogrify('%s, %s', [float('nan'), decimal.Decimal('nan')])
> "'NaN'::float, NaN"
>
> It should be quoted 'NaN' or 'NaN'::numeric.
This has finally been fixed.
federico
--
Federico Di Gregorio fog-NGVKUo/i/[email protected]
Everything will be OK at the end. If it's not OK, it's not the end.
-- Unknown
_______________________________________________
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/ iEYEARECAAYFAkuAeOYACgkQvcCgrgZGjevAewCfSVFxNdWmtL4b5bsqSvgSeDmo ZZAAoK3auRsnlDHhEq1GUlv7PHN+JndO =xXDp -----END PGP SIGNATURE-----