Stop passing unsupported flags to dpiSodaDocCursor_getNext().

This commit is contained in:
Anthony Tuininga 2021-04-23 13:41:48 -06:00
parent c527c06650
commit df89702a4e
2 changed files with 3 additions and 4 deletions

View File

@ -22,6 +22,7 @@ Version 8.2 (TBD)
#) The distributed transaction handle assosciated with the connection is now #) The distributed transaction handle assosciated with the connection is now
cleared on commit or rollback (`issue 530 cleared on commit or rollback (`issue 530
<https://github.com/oracle/python-cx_Oracle/issues/530>`__). <https://github.com/oracle/python-cx_Oracle/issues/530>`__).
#) Stop passing unsupported flags to dpiSodaDocCursor_getNext().
#) Added check to ensure that when setting variables or object attributes, the #) Added check to ensure that when setting variables or object attributes, the
type of the temporary LOB must match the expected type. type of the temporary LOB must match the expected type.
#) In order to follow the PEP 8 naming style a number of parameter names, #) In order to follow the PEP 8 naming style a number of parameter names,

View File

@ -97,13 +97,11 @@ static PyObject *cxoSodaDocCursor_getNext(cxoSodaDocCursor *cursor)
{ {
dpiSodaDoc *handle; dpiSodaDoc *handle;
cxoSodaDoc *doc; cxoSodaDoc *doc;
uint32_t flags;
int status; int status;
if (cxoConnection_getSodaFlags(cursor->db->connection, &flags) < 0)
return NULL;
Py_BEGIN_ALLOW_THREADS Py_BEGIN_ALLOW_THREADS
status = dpiSodaDocCursor_getNext(cursor->handle, flags, &handle); status = dpiSodaDocCursor_getNext(cursor->handle, DPI_SODA_FLAGS_DEFAULT,
&handle);
Py_END_ALLOW_THREADS Py_END_ALLOW_THREADS
if (status < 0) if (status < 0)
return cxoError_raiseAndReturnNull(); return cxoError_raiseAndReturnNull();