From: | Barry Lind <blind(at)xythos(dot)com> |
---|---|
To: | Felipe Schnack <felipes(at)ritterdosreis(dot)br> |
Cc: | pgsql-jdbc <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: dbcp |
Date: | 2003-01-31 16:53:04 |
Message-ID: | 3E3AA9F0.7040402@xythos.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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..
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Welty | 2003-01-31 22:51:02 | arrays and jdbc |
Previous Message | Barry Lind | 2003-01-31 16:48:08 | Re: problems with getImportedKeys method |