Skip to content

Commit b57e991

Browse files
Fixed an issue where the retry logic would fail when retry_count = 0
(as noted on #7).
1 parent 427047c commit b57e991

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/oracledb/impl/thin/connection.pyx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ cdef class ThinConnImpl(BaseConnImpl):
119119
idx2 = k
120120
address = address_list.addresses[idx2]
121121
if final_desc:
122-
raise_exc = i == num_attempts - 1
122+
raise_exc = i == num_attempts - 1 \
123+
and j == num_lists - 1 \
124+
and k == num_addresses - 1
123125
redirect_params = self._connect_with_address(address,
124126
description,
125127
params,

0 commit comments

Comments
 (0)