Andres Olarte wrote:
> Is it possible to get the query string (including the formatted
> parameters) from a PreparedStatement?
In general you can't because the query's not sent like that (the
parameter values are sent out of line from the query).
IIRC, PreparedStatement.toString() will give you an approximation, but
I'm not sure how accurate the results are (and it's not part of the spec)
In response to
pgsql-jdbc by date
|Next:||From: Phillip Mills||Date: 2007-11-06 14:09:35|
|Subject: Beginning tuning|
|Previous:||From: Kevin Neufeld||Date: 2007-11-06 04:47:03|
|Subject: Re: Parsed Query Trees|