How to get the SQL query from a PreparedStatement?

Поиск
Список
Период
Сортировка
От Andres Olarte
Тема How to get the SQL query from a PreparedStatement?
Дата
Msg-id 3fccaa690711051819s15082dehd5c67951a6e43dee@mail.gmail.com
обсуждение исходный текст
Ответы Re: How to get the SQL query from a PreparedStatement?  (Oliver Jowett <oliver@opencloud.com>)
Список 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 по дате отправления:

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: Parsed Query Trees
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Parsed Query Trees