From: Hugo Sacramento <hugo_sacramento@yahoo.com.br>
To: pgsql-jdbc@postgresql.org
Subject: Retrieve Query
Date: Fri, 24 Feb 2006 14:39:09 -0300 (ART)
Message-ID: <20060224173909.419.qmail@web33010.mail.mud.yahoo.com> (raw)
How do I to retrieve the string query prepared by a PreparedStatement??
i.e.:
-------------
PreparedStatement stmt = con.prepareStatement("select * from abc where x=?");
stmt.setString(1, x);
System.out.println("My Prepared Query:" + stmt.toString());
------------
but it don't work.
---------------------------------
Yahoo! Acesso Grátis
Internet rápida e grátis. Instale o discador agora!
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: hugo_sacramento@yahoo.com.br
Subject: Re: Retrieve Query
In-Reply-To: <20060224173909.419.qmail@web33010.mail.mud.yahoo.com>
References: <20060224173909.419.qmail@web33010.mail.mud.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox