Skip to content

Commit f202c7f

Browse files
committed
Preparing release 2.0.4.
1 parent f204da8 commit f202c7f

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2006-08-02 Federico Di Gregorio <fog@initd.org>
2+
3+
* Release 2.0.4.
4+
5+
* Fixed bug in float conversion (check for NULL string was
6+
erroneously removed in 2.0.3!)
7+
18
2006-07-31 Federico Di Gregorio <fog@initd.org>
29

310
* Release 2.0.3.

ZPsycopgDA/DA.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# See the LICENSE file for details.
1919

2020

21-
ALLOWED_PSYCOPG_VERSIONS = ('2.0.1', '2.0.2', '2.0.3')
21+
ALLOWED_PSYCOPG_VERSIONS = ('2.0.1', '2.0.2', '2.0.3', '2.0.4')
2222

2323
import sys
2424
import time

psycopg/typecast_basic.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ static PyObject *
5555
typecast_FLOAT_cast(char *s, int len, PyObject *curs)
5656
{
5757
char *pend;
58+
59+
if (s == NULL) {Py_INCREF(Py_None); return Py_None;}
5860
PyObject *str = PyString_FromStringAndSize(s, len);
5961
PyObject *flo = PyFloat_FromString(str, &pend);
6062
Py_DECREF(str);

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
from distutils.sysconfig import get_python_inc
5353
from distutils.ccompiler import get_default_compiler
5454

55-
PSYCOPG_VERSION = '2.0.3'
55+
PSYCOPG_VERSION = '2.0.4'
5656
version_flags = []
5757

5858
# to work around older distutil limitations

0 commit comments

Comments
 (0)