In thick mode, connections acquired from a homogeneous pool now show the

username and dsn to which they are connected in their repr().
This commit is contained in:
Anthony Tuininga 2022-11-07 10:33:53 -07:00
parent 847004a2ca
commit 62d7800f7a
2 changed files with 5 additions and 0 deletions

View File

@ -35,6 +35,9 @@ Thin Mode Changes
Thick Mode Changes
++++++++++++++++++
#) Connections acquired from a homogeneous pool now show the username and dsn
to which they are connected in their repr().
Common Changes
++++++++++++++

View File

@ -272,6 +272,8 @@ cdef class ThickConnImpl(BaseConnImpl):
# if the connection is part of the pool, get the pool creation params
if pool_impl is not None:
pool_params = pool_impl.connect_params
self.username = pool_impl.username
self.dsn = pool_impl.dsn
# set up connection parameters
params = ConnectionParams()