diff --git a/ChangeLog b/ChangeLog index 775b3bcd..30e18b1a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-11-09 Federico Di Gregorio + + * psycopg/adapter_pfloat.c: applied patch from Remy Blankto fix float + loss of precision. + 2009-10-04 Federico Di Gregorio * Release 2.0.13. diff --git a/psycopg/adapter_pfloat.c b/psycopg/adapter_pfloat.c index 10c05bd8..ff1c54c9 100644 --- a/psycopg/adapter_pfloat.c +++ b/psycopg/adapter_pfloat.c @@ -44,7 +44,7 @@ pfloat_str(pfloatObject *self) else if (isinf(n)) return PyString_FromString("'Infinity'::float"); else - return PyObject_Str(self->wrapped); + return PyObject_Repr(self->wrapped); } static PyObject *