Closed theo-fokkinga closed 1 year ago
Thanks for the report. I'll get that corrected!
I have pushed a patch that should correct this issue and added a relevant test case. If you are able to build from source you can verify that it corrects your issue as well.
I can confirm that the issue is fixed with this patch included. Thanks!
This patch is included in version 1.2.2 which was just released.
Database version: Oracle
19.17.0.0.0
platform.platform:
Linux-5.4.17-2136.313.6.el7uek.x86_64-x86_64-with-glibc2.17
sys.maxsize > 2**32:True
platform.python_version:3.9.16
oracledb.version:
1.2.1
Is it an error or a hang or a crash? Error
What error(s) or behavior you are seeing? When calling the
connect
function for a bequeath connection, like:The following error occurs:
Does your application call init_oracle_client()? Yes, running in thick mode.
Include a runnable Python script that shows the problem.
os.environ["ORACLE_HOME"] = "/u01/app/oracle/product/19.0.0.0/db_1" os.environ["ORACLE_SID"] = "ORCL" oracledb.init_oracle_client() connection = oracledb.connect(mode=oracledb.AUTH_MODE_SYSDBA)
connection.close()
'(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=None)(PORT=1521)))(CONNECT_DATA=)(SECURITY=(SSL_SERVER_DN_MATCH=ON)))'
--- a/src/oracledb/impl/base/connect_params.pyx +++ b/src/oracledb/impl/base/connect_params.pyx @@ -538,7 +538,7 @@ cdef class ConnectParamsImpl: will be a connect string built up from the components supplied when the object was built. """