Decode Diagnostics result on Python 3

This commit is contained in:
Daniele Varrazzo 2013-03-18 00:38:28 +00:00
parent 70b756b8c7
commit 819a551d01

View File

@ -67,8 +67,7 @@ psyco_diagnostics_get_field(diagnosticsObject *self, void *closure)
errortext = PQresultErrorField(
((cursorObject *)curs)->pgres, (Py_intptr_t) closure);
if (errortext) {
// FIXME: does this need to use conn_text_from_chars()?
rv = PyString_FromString(errortext);
rv = conn_text_from_chars(((cursorObject *)curs)->conn, errortext);
}
exit:
if (!rv) {