Skip to content

Commit f1f56f2

Browse files
Eliminated unnecessary restriction that resulted in error
"DPY-3011: server logon version is not supported".
1 parent 9fd0ee5 commit f1f56f2

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

doc/src/release_notes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Thin Mode Changes
2323
needs to be closed and a new one established).
2424
#) Internally make use of the `TCP_NODELAY` socket option to remove delays
2525
in socket reads.
26+
#) Eliminated unnecessary restriction that resulted in error
27+
``DPY-3011: server logon version is not supported``.
2628

2729
Thick Mode Changes
2830
++++++++++++++++++

src/oracledb/errors.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ def _raise_from_string(exc_type: Exception, message: str) -> None:
167167
ERR_UNSUPPORTED_INBAND_NOTIFICATION = 3008
168168
ERR_SELF_BIND_NOT_SUPPORTED = 3009
169169
ERR_SERVER_VERSION_NOT_SUPPORTED = 3010
170-
ERR_SERVER_LOGON_TYPE_NOT_SUPPORTED = 3011
171170
ERR_NCHAR_CS_NOT_SUPPORTED = 3012
172171
ERR_UNSUPPORTED_PYTHON_TYPE_FOR_VAR = 3013
173172
ERR_LOB_OF_WRONG_TYPE = 3014
@@ -407,8 +406,6 @@ def _raise_from_string(exc_type: Exception, message: str) -> None:
407406
'binding to self is not supported',
408407
ERR_CONNECTION_CLOSED:
409408
'the database or network closed the connection',
410-
ERR_SERVER_LOGON_TYPE_NOT_SUPPORTED:
411-
'server logon version is not supported',
412409
ERR_SERVER_VERSION_NOT_SUPPORTED:
413410
'connections to this database server version are not supported '
414411
'by python-oracledb in thin mode',

src/oracledb/impl/thin/messages.pyx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2105,8 +2105,6 @@ cdef class ProtocolMessage(Message):
21052105
caps.ncharset_id = (fdo[ix + 3] << 8) + fdo[ix + 4]
21062106
server_compile_caps = bytearray(buf.read_bytes())
21072107
server_runtime_caps = bytearray(buf.read_bytes())
2108-
if not server_compile_caps[TNS_CCAP_LOGON_TYPES] & TNS_CCAP_O7LOGON:
2109-
errors._raise_err(errors.ERR_SERVER_LOGON_TYPE_NOT_SUPPORTED)
21102108
buf._caps._adjust_for_server_compile_caps(server_compile_caps)
21112109
buf._caps._adjust_for_server_runtime_caps(server_runtime_caps)
21122110
else:

0 commit comments

Comments
 (0)