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:
parent
847004a2ca
commit
62d7800f7a
|
@ -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
|
||||
++++++++++++++
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue