From: Andres Olarte <olarte.andres@gmail.com>
To: Pgsql-Jdbc@Postgresql.Org <pgsql-jdbc@postgresql.org>
Subject: How to get the SQL query from a PreparedStatement?
Date: Mon, 5 Nov 2007 20:19:54 -0600
Message-ID: <3fccaa690711051819s15082dehd5c67951a6e43dee@mail.gmail.com> (raw)
Hi!
Is it possible to get the query string (including the formatted
parameters) from a PreparedStatement?
The idea is to get the query text, to send it into an stored procedure
to be executed within the sp (with some other stuff). This is an idea
I had to simulate variable parameter lists in stored procs. Is it
possible?
Thanks in advance,
Andres
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: olarte.andres@gmail.com
Subject: Re: How to get the SQL query from a PreparedStatement?
In-Reply-To: <3fccaa690711051819s15082dehd5c67951a6e43dee@mail.gmail.com>
References: <3fccaa690711051819s15082dehd5c67951a6e43dee@mail.gmail.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