Skip to content

Commit 62d7800

Browse files
In thick mode, connections acquired from a homogeneous pool now show the
username and dsn to which they are connected in their repr().
1 parent 847004a commit 62d7800

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

doc/src/release_notes.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ Thin Mode Changes
3535
Thick Mode Changes
3636
++++++++++++++++++
3737

38+
#) Connections acquired from a homogeneous pool now show the username and dsn
39+
to which they are connected in their repr().
40+
3841
Common Changes
3942
++++++++++++++
4043

src/oracledb/impl/thick/connection.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,8 @@ cdef class ThickConnImpl(BaseConnImpl):
272272
# if the connection is part of the pool, get the pool creation params
273273
if pool_impl is not None:
274274
pool_params = pool_impl.connect_params
275+
self.username = pool_impl.username
276+
self.dsn = pool_impl.dsn
275277

276278
# set up connection parameters
277279
params = ConnectionParams()

0 commit comments

Comments
 (0)