db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wbecker <wbec...@gmail.com>
Subject PreparedStatement.toString() - nice formatting
Date Thu, 15 May 2008 11:09:35 GMT

Is there a way to get a PreparedStatement to tell you what it is going to
give as a query to the db?

In mysql, a toString() on a PreparedStatement will do this, eg "select x
from foo where x.a = ?" will become "select x from foo where x.a = 1" with
the appropriate setValue() call. Is there a way to get a similar result with
Derby? All I seem to get is a string of gibberish, eg:

View this message in context: http://www.nabble.com/PreparedStatement.toString%28%29---nice-formatting-tp17250811p17250811.html
Sent from the Apache Derby Users mailing list archive at Nabble.com.

View raw message