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:
parent
5b20ca92f4
commit
fa43311bbc
|
@ -114,11 +114,8 @@ Connection Object
|
||||||
connection will be unusable from this point forward; an Error exception
|
connection will be unusable from this point forward; an Error exception
|
||||||
will be raised if any operation is attempted with the connection.
|
will be raised if any operation is attempted with the connection.
|
||||||
|
|
||||||
Before the connection can be closed, all cursors created by the connection
|
All open cursors and LOBs created by the connection will be closed and will
|
||||||
must first be closed or all references released. In addition, all LOB
|
also no longer be usable.
|
||||||
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.
|
|
||||||
|
|
||||||
Internally, references to the connection are held by cursor objects,
|
Internally, references to the connection are held by cursor objects,
|
||||||
LOB objects, subscription objects, etc. Once all of these references are
|
LOB objects, subscription objects, etc. Once all of these references are
|
||||||
|
|
2
odpi
2
odpi
|
@ -1 +1 @@
|
||||||
Subproject commit 855c898044cc7be20de74da7d42392787dcf8d49
|
Subproject commit aa913decde5c6d2905ba58bd4c25613155f52e17
|
15
setup.py
15
setup.py
|
@ -86,13 +86,14 @@ extension = Extension(
|
||||||
"odpi/src/dpiDeqOptions.c", "odpi/src/dpiEnqOptions.c",
|
"odpi/src/dpiDeqOptions.c", "odpi/src/dpiEnqOptions.c",
|
||||||
"odpi/src/dpiEnv.c", "odpi/src/dpiError.c",
|
"odpi/src/dpiEnv.c", "odpi/src/dpiError.c",
|
||||||
"odpi/src/dpiGen.c", "odpi/src/dpiGlobal.c",
|
"odpi/src/dpiGen.c", "odpi/src/dpiGlobal.c",
|
||||||
"odpi/src/dpiHandlePool.c", "odpi/src/dpiLob.c",
|
"odpi/src/dpiHandleList.c", "odpi/src/dpiHandlePool.c",
|
||||||
"odpi/src/dpiMsgProps.c", "odpi/src/dpiObject.c",
|
"odpi/src/dpiLob.c", "odpi/src/dpiMsgProps.c",
|
||||||
"odpi/src/dpiObjectAttr.c", "odpi/src/dpiObjectType.c",
|
"odpi/src/dpiObject.c", "odpi/src/dpiObjectAttr.c",
|
||||||
"odpi/src/dpiOci.c", "odpi/src/dpiOracleType.c",
|
"odpi/src/dpiObjectType.c", "odpi/src/dpiOci.c",
|
||||||
"odpi/src/dpiPool.c", "odpi/src/dpiRowid.c",
|
"odpi/src/dpiOracleType.c", "odpi/src/dpiPool.c",
|
||||||
"odpi/src/dpiStmt.c", "odpi/src/dpiSubscr.c",
|
"odpi/src/dpiRowid.c", "odpi/src/dpiStmt.c",
|
||||||
"odpi/src/dpiUtils.c", "odpi/src/dpiVar.c"])
|
"odpi/src/dpiSubscr.c", "odpi/src/dpiUtils.c",
|
||||||
|
"odpi/src/dpiVar.c"])
|
||||||
|
|
||||||
# perform the setup
|
# perform the setup
|
||||||
setup(
|
setup(
|
||||||
|
|
|
@ -745,6 +745,7 @@ void initcx_Oracle(void)
|
||||||
#include "dpiError.c"
|
#include "dpiError.c"
|
||||||
#include "dpiGen.c"
|
#include "dpiGen.c"
|
||||||
#include "dpiGlobal.c"
|
#include "dpiGlobal.c"
|
||||||
|
#include "dpiHandleList.c"
|
||||||
#include "dpiHandlePool.c"
|
#include "dpiHandlePool.c"
|
||||||
#include "dpiLob.c"
|
#include "dpiLob.c"
|
||||||
#include "dpiMsgProps.c"
|
#include "dpiMsgProps.c"
|
||||||
|
|
Loading…
Reference in New Issue