Resolve MemoryError exception on Windows when using an output type handler

(https://github.com/oracle/python-cx_Oracle/issues/330).
This commit is contained in:
Anthony Tuininga 2019-07-15 14:23:48 -06:00
parent ff25784c21
commit d526de1893
3 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ author = 'Oracle'
# The short X.Y version.
version = '7.2'
# The full version, including alpha/beta/rc tags.
release = '7.2.0'
release = '7.2.1'
# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:

View File

@ -20,7 +20,7 @@ except:
from distutils.extension import Extension
# define build constants
BUILD_VERSION = "7.2.0"
BUILD_VERSION = "7.2.1"
# setup extra link and compile args
extraLinkArgs = []

View File

@ -414,7 +414,7 @@ static int cxoCursor_performDefine(cxoCursor *cursor, uint32_t numQueryColumns)
// if using an output type handler, None implies default behavior
if (outputTypeHandler) {
result = PyObject_CallFunction(outputTypeHandler, "Os#Oiii",
cursor, queryInfo.name, queryInfo.nameLength,
cursor, queryInfo.name, (Py_ssize_t) queryInfo.nameLength,
varType->pythonType, size, queryInfo.typeInfo.precision,
queryInfo.typeInfo.scale);
if (!result) {