File tree 4 files changed +11
-2
lines changed
4 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,12 @@ Thin Mode Changes
21
21
:data: `oracledb.DB_TYPE_LONG ` or :data: `oracledb.DB_TYPE_LONG_RAW ` to
22
22
to a different compatible type
23
23
(`issue 424 <https://github.com/oracle/python-oracledb/issues/424 >`__).
24
+ #) If the database states that an out-of-band break check should not take
25
+ place during connect (by setting the `DISABLE_OOB_AUTO
26
+ <https://www.oracle.com/pls/topic/lookup?ctx=dblatest&
27
+ id=GUID-490A0B3B-FEF3-425A-81B0-6FA29D4B8C0E> `__ parameter to TRUE),
28
+ python-oracledb no longer attempts to do so
29
+ (`issue 419 <https://github.com/oracle/python-oracledb/issues/419 >`__).
24
30
#) All exceptions subclassed from ``OSError `` now cause connection retry
25
31
attempts, subject to the connection ``retry_count `` and ``retry_delay ``
26
32
parameters
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ cdef class Capabilities:
41
41
uint32_t max_string_size
42
42
bint supports_fast_auth
43
43
bint supports_oob
44
+ bint supports_oob_check
44
45
bint supports_end_of_response
45
46
bint supports_pipelining
46
47
uint32_t sdu
@@ -60,6 +61,8 @@ cdef class Capabilities:
60
61
self .supports_oob = protocol_options & TNS_GSO_CAN_RECV_ATTENTION
61
62
if flags & TNS_ACCEPT_FLAG_FAST_AUTH:
62
63
self .supports_fast_auth = True
64
+ if flags & TNS_ACCEPT_FLAG_CHECK_OOB:
65
+ self .supports_oob_check = True
63
66
if protocol_version >= TNS_VERSION_MIN_END_OF_RESPONSE:
64
67
if flags & TNS_ACCEPT_FLAG_HAS_END_OF_RESPONSE:
65
68
self .compile_caps[TNS_CCAP_TTC4] |= TNS_CCAP_END_OF_RESPONSE
Original file line number Diff line number Diff line change @@ -762,6 +762,7 @@ cdef enum:
762
762
763
763
# accept flags
764
764
cdef enum :
765
+ TNS_ACCEPT_FLAG_CHECK_OOB = 0x00000001
765
766
TNS_ACCEPT_FLAG_FAST_AUTH = 0x10000000
766
767
TNS_ACCEPT_FLAG_HAS_END_OF_RESPONSE = 0x02000000
767
768
Original file line number Diff line number Diff line change @@ -291,8 +291,7 @@ cdef class Protocol(BaseProtocol):
291
291
292
292
# if we can use OOB, send an urgent message now followed by a reset
293
293
# marker to see if the server understands it
294
- if self ._caps.supports_oob \
295
- and self ._caps.protocol_version >= TNS_VERSION_MIN_OOB_CHECK:
294
+ if self ._caps.supports_oob and self ._caps.supports_oob_check:
296
295
self ._transport.send_oob_break()
297
296
self ._send_marker(self ._write_buf, TNS_MARKER_TYPE_RESET)
298
297
You can’t perform that action at this time.
0 commit comments