Replace PyBytes_ with cxString to make Python 3.x happy.
This commit is contained in:
parent
49f9c14f97
commit
93bdbb7425
2
Cursor.c
2
Cursor.c
@ -1316,7 +1316,7 @@ static int Cursor_Call(
|
|||||||
Py_DECREF(arguments);
|
Py_DECREF(arguments);
|
||||||
|
|
||||||
// create the statement object
|
// create the statement object
|
||||||
format = PyBytes_FromString(statement);
|
format = cxString_FromAscii(statement);
|
||||||
PyMem_Free(statement);
|
PyMem_Free(statement);
|
||||||
if (!format) {
|
if (!format) {
|
||||||
Py_DECREF(bindVariables);
|
Py_DECREF(bindVariables);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user