diff --git a/doc/src/release_notes.rst b/doc/src/release_notes.rst index 9f481a11..64fb0036 100644 --- a/doc/src/release_notes.rst +++ b/doc/src/release_notes.rst @@ -11,6 +11,17 @@ Release changes are listed as affecting Thin Mode (the default runtime behavior of python-oracledb), as affecting the optional :ref:`Thick Mode `, or as being 'Common' for changes that impact both modes. +oracledb 2.4.1 (August 2024) +---------------------------- + +Thin Mode Changes ++++++++++++++++++ + +#) Fixed bug when detecting in-band notification warnings while the connection + is being created or actively used + (`issue 383 `__). + + oracledb 2.4.0 (August 2024) ---------------------------- diff --git a/src/oracledb/impl/thin/packet.pyx b/src/oracledb/impl/thin/packet.pyx index 969e7dca..a08f6243 100644 --- a/src/oracledb/impl/thin/packet.pyx +++ b/src/oracledb/impl/thin/packet.pyx @@ -219,7 +219,9 @@ cdef class ReadBuffer(Buffer): Checks to see if the transport is connected and throws the appropriate exception if not. """ - if self._pending_error_num != 0: + if self._pending_error_num not in ( + 0, TNS_ERR_SESSION_SHUTDOWN, TNS_ERR_INBAND_MESSAGE + ): if self._transport is not None: self._transport.disconnect() self._transport = None diff --git a/src/oracledb/impl/thin/pool.pyx b/src/oracledb/impl/thin/pool.pyx index a19038a5..34c609ea 100644 --- a/src/oracledb/impl/thin/pool.pyx +++ b/src/oracledb/impl/thin/pool.pyx @@ -853,7 +853,7 @@ cdef class PooledConnRequest: buf.check_control_packet() if buf._pending_error_num != 0: self.pool_impl._drop_conn_impl(conn_impl) - self._open_count -= 1 + self.pool_impl._open_count -= 1 else: self.conn_impl = conn_impl if self.pool_impl._ping_interval == 0: diff --git a/src/oracledb/version.py b/src/oracledb/version.py index 703ebf73..0d27714f 100644 --- a/src/oracledb/version.py +++ b/src/oracledb/version.py @@ -30,4 +30,4 @@ # file doc/src/conf.py both reference this file directly. # ----------------------------------------------------------------------------- -__version__ = "2.4.0" +__version__ = "2.4.1"