decimal.Decimal('nan') not correctly quoted
paftek <[email protected]>
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Message-ID | <[email protected]> |
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.
Thanks