Skip to content

Commit 586518d

Browse files
Resolve MemoryError exception on Windows when using an output type handler
(#330).
1 parent 0592501 commit 586518d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

doc/src/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
# The short X.Y version.
4343
version = '7.2'
4444
# The full version, including alpha/beta/rc tags.
45-
release = '7.2.0'
45+
release = '7.2.1'
4646

4747
# There are two options for replacing |today|: either, you set today to some
4848
# non-false value, then it is used:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from distutils.extension import Extension
2121

2222
# define build constants
23-
BUILD_VERSION = "7.2.0"
23+
BUILD_VERSION = "7.2.1"
2424

2525
# setup extra link and compile args
2626
extraLinkArgs = []

src/cxoCursor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ static int cxoCursor_performDefine(cxoCursor *cursor, uint32_t numQueryColumns)
414414
// if using an output type handler, None implies default behavior
415415
if (outputTypeHandler) {
416416
result = PyObject_CallFunction(outputTypeHandler, "Os#Oiii",
417-
cursor, queryInfo.name, queryInfo.nameLength,
417+
cursor, queryInfo.name, (Py_ssize_t) queryInfo.nameLength,
418418
varType->pythonType, size, queryInfo.typeInfo.precision,
419419
queryInfo.typeInfo.scale);
420420
if (!result) {

0 commit comments

Comments
 (0)