Skip to content

Commit f8c8b6c

Browse files
authored
Replace PyUnicode_GetSize in getUnicodeDataAsSQLWCHAR
1 parent c16a301 commit f8c8b6c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

IfxPy/ifxpyc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2238,7 +2238,7 @@ static SQLWCHAR* getUnicodeDataAsSQLWCHAR(PyObject *pyobj, int *isNewBuffer)
22382238
*isNewBuffer = 0;
22392239
#if PY_VERSION_HEX >= 0x03030000
22402240
// For Python 3.3 and above
2241-
nCharLen = PyUnicode_GetSize(pyobj);
2241+
nCharLen = PyUnicode_GetLength(pyobj);
22422242
#else
22432243
// For Python versions below 3.3
22442244
nCharLen = PyUnicode_GET_SIZE(pyobj);

0 commit comments

Comments
 (0)