From 62d7800f7ad90e965644affb3a17cddc38b87be3 Mon Sep 17 00:00:00 2001 From: Anthony Tuininga Date: Mon, 7 Nov 2022 10:33:53 -0700 Subject: [PATCH] In thick mode, connections acquired from a homogeneous pool now show the username and dsn to which they are connected in their repr(). --- doc/src/release_notes.rst | 3 +++ src/oracledb/impl/thick/connection.pyx | 2 ++ 2 files changed, 5 insertions(+) diff --git a/doc/src/release_notes.rst b/doc/src/release_notes.rst index 5d7e94a..717c0a9 100644 --- a/doc/src/release_notes.rst +++ b/doc/src/release_notes.rst @@ -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 ++++++++++++++ diff --git a/src/oracledb/impl/thick/connection.pyx b/src/oracledb/impl/thick/connection.pyx index 87b4d3b..6d5115b 100644 --- a/src/oracledb/impl/thick/connection.pyx +++ b/src/oracledb/impl/thick/connection.pyx @@ -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()