Update ODPI-C; remove error "DPI-1054: connection cannot be closed when open

statements or LOBs exist"
(https://github.com/oracle/python-cx_Oracle/issues/138).
This commit is contained in:
Anthony Tuininga 2018-01-26 21:18:16 -07:00
parent 5b20ca92f4
commit fa43311bbc
4 changed files with 12 additions and 13 deletions

View File

@ -114,11 +114,8 @@ Connection Object
connection will be unusable from this point forward; an Error exception
will be raised if any operation is attempted with the connection.
Before the connection can be closed, all cursors created by the connection
must first be closed or all references released. In addition, all LOB
objects created by the connection must have their references released. If
this has not been done, the exception "DPI-1054: connection cannot be
closed when open statements or LOBs exist" will be raised.
All open cursors and LOBs created by the connection will be closed and will
also no longer be usable.
Internally, references to the connection are held by cursor objects,
LOB objects, subscription objects, etc. Once all of these references are

2
odpi

@ -1 +1 @@
Subproject commit 855c898044cc7be20de74da7d42392787dcf8d49
Subproject commit aa913decde5c6d2905ba58bd4c25613155f52e17

View File

@ -86,13 +86,14 @@ extension = Extension(
"odpi/src/dpiDeqOptions.c", "odpi/src/dpiEnqOptions.c",
"odpi/src/dpiEnv.c", "odpi/src/dpiError.c",
"odpi/src/dpiGen.c", "odpi/src/dpiGlobal.c",
"odpi/src/dpiHandlePool.c", "odpi/src/dpiLob.c",
"odpi/src/dpiMsgProps.c", "odpi/src/dpiObject.c",
"odpi/src/dpiObjectAttr.c", "odpi/src/dpiObjectType.c",
"odpi/src/dpiOci.c", "odpi/src/dpiOracleType.c",
"odpi/src/dpiPool.c", "odpi/src/dpiRowid.c",
"odpi/src/dpiStmt.c", "odpi/src/dpiSubscr.c",
"odpi/src/dpiUtils.c", "odpi/src/dpiVar.c"])
"odpi/src/dpiHandleList.c", "odpi/src/dpiHandlePool.c",
"odpi/src/dpiLob.c", "odpi/src/dpiMsgProps.c",
"odpi/src/dpiObject.c", "odpi/src/dpiObjectAttr.c",
"odpi/src/dpiObjectType.c", "odpi/src/dpiOci.c",
"odpi/src/dpiOracleType.c", "odpi/src/dpiPool.c",
"odpi/src/dpiRowid.c", "odpi/src/dpiStmt.c",
"odpi/src/dpiSubscr.c", "odpi/src/dpiUtils.c",
"odpi/src/dpiVar.c"])
# perform the setup
setup(

View File

@ -745,6 +745,7 @@ void initcx_Oracle(void)
#include "dpiError.c"
#include "dpiGen.c"
#include "dpiGlobal.c"
#include "dpiHandleList.c"
#include "dpiHandlePool.c"
#include "dpiLob.c"
#include "dpiMsgProps.c"