Skip to content

Commit 6e10649

Browse files
Fixed bug connecting to databases that are only mounted and not opened
(#294).
1 parent 24ec444 commit 6e10649

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

doc/src/release_notes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ Thin Mode Changes
2222
#) Fixed potential cursor issues when using DRCP.
2323
#) Fixed regression when using IAM token authentication
2424
(`issue 288 <https://github.com/oracle/python-oracledb/issues/288>`__).
25+
#) Fixed bug connecting to databases that are only mounted and not opened
26+
(`issue 294 <https://github.com/oracle/python-oracledb/issues/294>`__).
2527
#) Fixed bug when using DRCP with :ref:`asyncio <asyncio>`.
2628
#) Fixed bug in identifying bind variables in SQL statements containing a
2729
single line comment at the end of the statement.

src/oracledb/impl/thin/messages.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1574,7 +1574,7 @@ cdef class AuthMessage(Message):
15741574
self.conn_impl._db_name = \
15751575
self.session_data.get("AUTH_SC_DBUNIQUE_NAME")
15761576
self.conn_impl._max_open_cursors = \
1577-
int(self.session_data.get("AUTH_MAX_OPEN_CURSORS"))
1577+
int(self.session_data.get("AUTH_MAX_OPEN_CURSORS", 0))
15781578
self.conn_impl._service_name = \
15791579
self.session_data.get("AUTH_SC_SERVICE_NAME")
15801580
self.conn_impl._instance_name = \

0 commit comments

Comments
 (0)