Re: Display SQL from Java Prepared Statement - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: Display SQL from Java Prepared Statement
Date
Msg-id CA+0W9LNOr=pe+DoEb6RvTL6B5pmVmv+AE30W0sXMDr5E+WJnpA@mail.gmail.com
Whole thread Raw
In response to Re: Display SQL from Java Prepared Statement  (vanayya <nurmi_isnayati@yahoo.com>)
List pgsql-jdbc
On 22 August 2011 15:00, vanayya <nurmi_isnayati@yahoo.com> wrote:

> /query : org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement@1c1de1c/

You are using a connection pool that wraps the statement object.
You'll need to unwrap it, or modify the connection pool's
implementation so that toString() delegates to the underlying
statement.

Oliver

pgsql-jdbc by date:

Previous
From: vanayya
Date:
Subject: Re: Display SQL from Java Prepared Statement
Next
From: JavaNoobie
Date:
Subject: Update+ Prepared Statement Error.