mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-01-31 09:24:07 +03:00
Preparing 2.0.5.
This commit is contained in:
parent
9f9af5f907
commit
3e0d8792a8
|
@ -1,5 +1,9 @@
|
||||||
2006-09-01 Federico Di Gregorio <fog@initd.org>
|
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.
|
* Preparing release 2.0.5.
|
||||||
|
|
||||||
* psycopg/psycopgmodule.c: fixed filling of connection errors
|
* psycopg/psycopgmodule.c: fixed filling of connection errors
|
||||||
|
|
|
@ -149,14 +149,11 @@ binary_quote(binaryObject *self)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (len > 0) {
|
if (len > 0)
|
||||||
self->buffer = PyString_FromFormat("'%s'", to);
|
self->buffer = PyString_FromFormat("'%s'", to);
|
||||||
PQfreemem(to);
|
else
|
||||||
}
|
|
||||||
else {
|
|
||||||
self->buffer = PyString_FromString("''");
|
self->buffer = PyString_FromString("''");
|
||||||
PQfreemem(to);
|
PQfreemem(to);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if the wrapped object is not a string or a buffer, this is an error */
|
/* if the wrapped object is not a string or a buffer, this is an error */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user