Preparing 2.0.5.

This commit is contained in:
Federico Di Gregorio 2006-09-01 12:42:03 +00:00
parent 9f9af5f907
commit 3e0d8792a8
2 changed files with 7 additions and 6 deletions

View File

@ -1,5 +1,9 @@
2006-09-01 Federico Di Gregorio <fog@initd.org>
* Release 2.0.5.
* Fixed patch from #119, see tracker for details.
* Preparing release 2.0.5.
* psycopg/psycopgmodule.c: fixed filling of connection errors

View File

@ -149,15 +149,12 @@ binary_quote(binaryObject *self)
return NULL;
}
if (len > 0) {
if (len > 0)
self->buffer = PyString_FromFormat("'%s'", to);
PQfreemem(to);
}
else {
else
self->buffer = PyString_FromString("''");
PQfreemem(to);
}
}
/* if the wrapped object is not a string or a buffer, this is an error */
else {