From 586518def186ca6973093bb16cb9934d51afa392 Mon Sep 17 00:00:00 2001 From: Anthony Tuininga Date: Wed, 24 Jul 2019 16:41:06 -0600 Subject: [PATCH] Resolve MemoryError exception on Windows when using an output type handler (https://github.com/oracle/python-cx_Oracle/issues/330). --- doc/src/conf.py | 2 +- setup.py | 2 +- src/cxoCursor.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/src/conf.py b/doc/src/conf.py index 29b368a0..d0020dc7 100644 --- a/doc/src/conf.py +++ b/doc/src/conf.py @@ -42,7 +42,7 @@ # 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: diff --git a/setup.py b/setup.py index 3d817376..405f1d1d 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ 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 = [] diff --git a/src/cxoCursor.c b/src/cxoCursor.c index ac0302e8..d6cc3c7b 100644 --- a/src/cxoCursor.c +++ b/src/cxoCursor.c @@ -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) {