Retrieve Query - Mailing list pgsql-jdbc

From Hugo Sacramento
Subject Retrieve Query
Date
Msg-id 20060224173909.419.qmail@web33010.mail.mud.yahoo.com
Whole thread Raw
Responses Re: Retrieve Query  (Markus Schaber <schabi@logix-tt.com>)
List pgsql-jdbc
How do I to retrieve the string query prepared by a PreparedStatement??

i.e.:

-------------
PreparedStatement stmt = con.prepareStatement("select * from abc where x=?");
stmt.setString(1, x);
System.out.println("My Prepared Query:" + stmt.toString());
------------

but it don't work.




Yahoo! Acesso Grátis
Internet rápida e grátis. Instale o discador agora!

pgsql-jdbc by date:

Previous
From: Neil Macneale
Date:
Subject: SSL trust and client authentication support
Next
From: Ali Vatani
Date:
Subject: postgres PreparedStatement commented ? problem PSQLException: No value specified for parameter ...