Re: Display SQL from Java Prepared Statement

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: vanayya <nurmi_isnayati(at)yahoo(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Display SQL from Java Prepared Statement
Date: 2011-08-22 13:04:54
Message-ID: CA+0W9LNOr=pe+DoEb6RvTL6B5pmVmv+AE30W0sXMDr5E+WJnpA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On 22 August 2011 15:00, vanayya <nurmi_isnayati(at)yahoo(dot)com> wrote:

> /query : org(dot)apache(dot)tomcat(dot)dbcp(dot)dbcp(dot)DelegatingPreparedStatement(at)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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message JavaNoobie 2011-08-23 05:34:56 Update+ Prepared Statement Error.
Previous Message JavaNoobie 2011-08-22 12:40:50 Re: how to Escape single quotes with PreparedStatment