diff --git a/src/cxoConnection.c b/src/cxoConnection.c index 3c07789..c1a4b56 100644 --- a/src/cxoConnection.c +++ b/src/cxoConnection.c @@ -1199,7 +1199,7 @@ static PyObject *cxoConnection_commit(cxoConnection *conn, PyObject *args) //----------------------------------------------------------------------------- static PyObject *cxoConnection_begin(cxoConnection *conn, PyObject *args) { - uint32_t transactionIdLength, branchIdLength; + Py_ssize_t transactionIdLength, branchIdLength; const char *transactionId, *branchId; int formatId, status; diff --git a/src/cxoModule.h b/src/cxoModule.h index e2043dc..62ac9dd 100644 --- a/src/cxoModule.h +++ b/src/cxoModule.h @@ -9,6 +9,8 @@ // Include file for all cx_Oracle source files. //----------------------------------------------------------------------------- +#define PY_SSIZE_T_CLEAN 1 + #include #include #include diff --git a/src/cxoSessionPool.c b/src/cxoSessionPool.c index 555ef54..806a30e 100644 --- a/src/cxoSessionPool.c +++ b/src/cxoSessionPool.c @@ -332,7 +332,7 @@ static PyObject *cxoSessionPool_acquire(cxoSessionPool *pool, PyObject *args, "tag", "matchanytag", "shardingkey", "supershardingkey", NULL }; PyObject *createKeywordArgs, *result, *cclassObj, *purityObj, *tagObj; PyObject *shardingKeyObj, *superShardingKeyObj; - unsigned usernameLength, passwordLength; + Py_ssize_t usernameLength, passwordLength; char *username, *password; PyObject *matchAnyTagObj;