mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-01-31 09:24:07 +03:00
Fixed float loss of precision
This commit is contained in:
parent
b537404487
commit
7b730f3935
|
@ -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.
|
||||||
|
|
|
@ -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 *
|
||||||
|
|
Loading…
Reference in New Issue
Block a user