diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | ZPsycopgDA/DA.py | 2 | ||||
-rw-r--r-- | psycopg/typecast_basic.c | 2 | ||||
-rw-r--r-- | setup.py | 2 |
4 files changed, 11 insertions, 2 deletions
@@ -1,3 +1,10 @@ +2006-08-02 Federico Di Gregorio <fog@initd.org> + + * Release 2.0.4. + + * Fixed bug in float conversion (check for NULL string was + erroneously removed in 2.0.3!) + 2006-07-31 Federico Di Gregorio <fog@initd.org> * Release 2.0.3. diff --git a/ZPsycopgDA/DA.py b/ZPsycopgDA/DA.py index c0bd8e9..a336376 100644 --- a/ZPsycopgDA/DA.py +++ b/ZPsycopgDA/DA.py @@ -18,7 +18,7 @@ # See the LICENSE file for details. -ALLOWED_PSYCOPG_VERSIONS = ('2.0.1', '2.0.2', '2.0.3') +ALLOWED_PSYCOPG_VERSIONS = ('2.0.1', '2.0.2', '2.0.3', '2.0.4') import sys import time diff --git a/psycopg/typecast_basic.c b/psycopg/typecast_basic.c index 00f9480..f59e5c3 100644 --- a/psycopg/typecast_basic.c +++ b/psycopg/typecast_basic.c @@ -55,6 +55,8 @@ static PyObject * typecast_FLOAT_cast(char *s, int len, PyObject *curs) { char *pend; + + if (s == NULL) {Py_INCREF(Py_None); return Py_None;} PyObject *str = PyString_FromStringAndSize(s, len); PyObject *flo = PyFloat_FromString(str, &pend); Py_DECREF(str); @@ -52,7 +52,7 @@ from distutils.command.build_ext import build_ext from distutils.sysconfig import get_python_inc from distutils.ccompiler import get_default_compiler -PSYCOPG_VERSION = '2.0.3' +PSYCOPG_VERSION = '2.0.4' version_flags = [] # to work around older distutil limitations |