Skip to content

Commit ba350dc

Browse files
Fixed bug with connect strings containing "SOURCE_ROUTE=YES" where the
second host is unresolvable by the client.
1 parent 2d9f577 commit ba350dc

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

doc/src/release_notes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ Thin Mode Changes
2929
#) Fixed bug with execution of a PL/SQL block containing at least one output
3030
bind variable immediately following a query that returned multiple
3131
duplicate rows.
32+
#) Fixed bug with connect strings containing ``SOURCE_ROUTE=YES`` where the
33+
second host is unresolvable by the client.
3234

3335
Thick Mode Changes
3436
++++++++++++++++++

src/oracledb/impl/base/connect_params.pyx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,9 +772,10 @@ cdef class AddressList(ConnectParamsNode):
772772
cdef:
773773
list addresses = []
774774
Address address
775-
for address in children:
775+
ConnectParamsNode._set_active_children(self, children)
776+
for address in self.active_children:
776777
addresses.extend(address.resolve_host_name())
777-
ConnectParamsNode._set_active_children(self, addresses)
778+
self.active_children = addresses
778779

779780
cdef bint _uses_tcps(self):
780781
"""

0 commit comments

Comments
 (0)