Skip to content

Commit 05a297b

Browse files
Added support for connecting to databases that accept passwords longer
than 30 UTF-8 encoded bytes.
1 parent f08dd03 commit 05a297b

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

doc/src/release_notes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ oracledb 1.3.0 (TBD)
1313
Thin Mode Changes
1414
+++++++++++++++++
1515

16+
#) Added support for connecting to databases that accept passwords longer than
17+
30 UTF-8 encoded bytes.
1618
#) Added internal support for prefetching the LOB size and chunk size, thereby
1719
eliminating a :ref:`round-trip<roundtrips>` when calling
1820
:meth:`LOB.size()` and :meth:`LOB.getchunksize()`.

src/oracledb/impl/thin/capabilities.pyx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ cdef class Capabilities:
7979
self.compile_caps[TNS_CCAP_SQL_VERSION] = TNS_CCAP_SQL_VERSION_MAX
8080
self.compile_caps[TNS_CCAP_LOGON_TYPES] = \
8181
TNS_CCAP_O5LOGON | TNS_CCAP_O5LOGON_NP | \
82-
TNS_CCAP_O7LOGON | TNS_CCAP_O8LOGON_LONG_IDENTIFIER
82+
TNS_CCAP_O7LOGON | TNS_CCAP_O8LOGON_LONG_IDENTIFIER | \
83+
TNS_CCAP_O9LOGON_LONG_PASSWORD
8384
self.compile_caps[TNS_CCAP_FIELD_VERSION] = self.ttc_field_version
8485
self.compile_caps[TNS_CCAP_SERVER_DEFINE_CONV] = 1
8586
self.compile_caps[TNS_CCAP_TTC1] = \

src/oracledb/impl/thin/constants.pxi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,7 @@ DEF TNS_CCAP_O5LOGON = 8
669669
DEF TNS_CCAP_O5LOGON_NP = 2
670670
DEF TNS_CCAP_O7LOGON = 32
671671
DEF TNS_CCAP_O8LOGON_LONG_IDENTIFIER = 64
672+
DEF TNS_CCAP_O9LOGON_LONG_PASSWORD = 0x80
672673
DEF TNS_CCAP_END_OF_CALL_STATUS = 0x01
673674
DEF TNS_CCAP_IND_RCD = 0x08
674675
DEF TNS_CCAP_FAST_BVEC = 0x20

0 commit comments

Comments
 (0)