How to get the SQL query from a PreparedStatement? - Mailing list pgsql-jdbc

From Andres Olarte
Subject How to get the SQL query from a PreparedStatement?
Date
Msg-id 3fccaa690711051819s15082dehd5c67951a6e43dee@mail.gmail.com
Whole thread Raw
Responses Re: How to get the SQL query from a PreparedStatement?
List pgsql-jdbc
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

pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: Parsed Query Trees
Next
From: Tom Lane
Date:
Subject: Re: Parsed Query Trees