Fixed float loss of precision

This commit is contained in:
Federico Di Gregorio 2009-11-09 09:17:05 +01:00
parent b537404487
commit 7b730f3935
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-11-09 Federico Di Gregorio <fog@initd.org>
* psycopg/adapter_pfloat.c: applied patch from Remy Blankto fix float
loss of precision.
2009-10-04 Federico Di Gregorio <fog@initd.org> 2009-10-04 Federico Di Gregorio <fog@initd.org>
* Release 2.0.13. * Release 2.0.13.

View File

@ -44,7 +44,7 @@ pfloat_str(pfloatObject *self)
else if (isinf(n)) else if (isinf(n))
return PyString_FromString("'Infinity'::float"); return PyString_FromString("'Infinity'::float");
else else
return PyObject_Str(self->wrapped); return PyObject_Repr(self->wrapped);
} }
static PyObject * static PyObject *