File tree Expand file tree Collapse file tree 3 files changed +7
-10
lines changed Expand file tree Collapse file tree 3 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ oracledb 2.1.1 (TBD)
13
13
Thin Mode Changes
14
14
+++++++++++++++++
15
15
16
+ #) Restored error message raised when attempting to connect to an 11g
17
+ database.
18
+
16
19
Thick Mode Changes
17
20
++++++++++++++++++
18
21
Original file line number Diff line number Diff line change @@ -1835,6 +1835,10 @@ cdef class ConnectMessage(Message):
1835
1835
self .read_redirect_data_len = False
1836
1836
elif buf._current_packet.packet_type == TNS_PACKET_TYPE_ACCEPT:
1837
1837
buf.read_uint16(& protocol_version)
1838
+ # check if the protocol version supported by the database is high
1839
+ # enough; if not, reject the connection immediately
1840
+ if protocol_version < TNS_VERSION_MIN_ACCEPTED:
1841
+ errors._raise_err(errors.ERR_SERVER_VERSION_NOT_SUPPORTED)
1838
1842
buf.read_uint16(& protocol_options)
1839
1843
buf.skip_raw_bytes(20 )
1840
1844
buf.read_uint32(& buf._caps.sdu)
Original file line number Diff line number Diff line change @@ -284,11 +284,6 @@ cdef class Protocol(BaseProtocol):
284
284
ProtocolMessage protocol_message
285
285
AuthMessage auth_message
286
286
287
- # check if the protocol version supported by the database is high
288
- # enough; if not, reject the connection immediately
289
- if self ._caps.protocol_version < TNS_VERSION_MIN_ACCEPTED:
290
- errors._raise_err(errors.ERR_SERVER_VERSION_NOT_SUPPORTED)
291
-
292
287
# if we can use OOB, send an urgent message now followed by a reset
293
288
# marker to see if the server understands it
294
289
if self ._caps.supports_oob \
@@ -641,11 +636,6 @@ cdef class BaseAsyncProtocol(BaseProtocol):
641
636
ProtocolMessage protocol_message
642
637
AuthMessage auth_message
643
638
644
- # check if the protocol version supported by the database is high
645
- # enough; if not, reject the connection immediately
646
- if self ._caps.protocol_version < TNS_VERSION_MIN_ACCEPTED:
647
- errors._raise_err(errors.ERR_SERVER_VERSION_NOT_SUPPORTED)
648
-
649
639
# create the messages that need to be sent to the server
650
640
protocol_message = conn_impl._create_message(ProtocolMessage)
651
641
data_types_message = conn_impl._create_message(DataTypesMessage)
You can’t perform that action at this time.
0 commit comments