Preparing release 2.0.4.

This commit is contained in:
Federico Di Gregorio 2006-08-01 23:36:50 +00:00
parent f204da89b5
commit f202c7fc81
4 changed files with 11 additions and 2 deletions

View File

@ -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> 2006-07-31 Federico Di Gregorio <fog@initd.org>
* Release 2.0.3. * Release 2.0.3.

View File

@ -18,7 +18,7 @@
# See the LICENSE file for details. # 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 sys
import time import time

View File

@ -55,6 +55,8 @@ static PyObject *
typecast_FLOAT_cast(char *s, int len, PyObject *curs) typecast_FLOAT_cast(char *s, int len, PyObject *curs)
{ {
char *pend; char *pend;
if (s == NULL) {Py_INCREF(Py_None); return Py_None;}
PyObject *str = PyString_FromStringAndSize(s, len); PyObject *str = PyString_FromStringAndSize(s, len);
PyObject *flo = PyFloat_FromString(str, &pend); PyObject *flo = PyFloat_FromString(str, &pend);
Py_DECREF(str); Py_DECREF(str);

View File

@ -52,7 +52,7 @@ from distutils.command.build_ext import build_ext
from distutils.sysconfig import get_python_inc from distutils.sysconfig import get_python_inc
from distutils.ccompiler import get_default_compiler from distutils.ccompiler import get_default_compiler
PSYCOPG_VERSION = '2.0.3' PSYCOPG_VERSION = '2.0.4'
version_flags = [] version_flags = []
# to work around older distutil limitations # to work around older distutil limitations