Re: dbcp - Mailing list pgsql-jdbc

From Barry Lind
Subject Re: dbcp
Date
Msg-id 3E3AA9F0.7040402@xythos.com
Whole thread Raw
In response to dbcp  (Felipe Schnack <felipes@ritterdosreis.br>)
List pgsql-jdbc
Felipe,

My guess is that the DBCP connection pool code is wrapping the postgres
jdbc connection object with its own object (most connection pools do
this).  So when you call Connection.toString() you are calling the DBCP
implementation's method not the postgres jdbc driver method.  Thus you
would need to ask the DBCP developers why they chose not to include the
output from the enclosed connection object's toString() method in their
wrapper's toString() implementation.

thanks,
--Barry


Felipe Schnack wrote:
>   I'm using our driver with Tomcat and DBCP connection pooling. For some
> reason when I get a connection from the pool and can
> Connection.toString() method, I don't get my sql query, but toString()
> default implementation (class name, etc). Why this happens? As I
> understand pgsql jdbc driver source code it does override this method..




pgsql-jdbc by date:

Previous
From: Barry Lind
Date:
Subject: Re: DatabaseMetaData oddities
Next
From: Kris Jurka
Date:
Subject: Re: DatabaseMetaData oddities