Retrieve Query

From: Hugo Sacramento <hugo_sacramento(at)yahoo(dot)com(dot)br>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Retrieve Query
Date: 2006-02-24 17:39:09
Message-ID: 20060224173909.419.qmail@web33010.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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!

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Ali Vatani 2006-02-25 03:09:13 postgres PreparedStatement commented ? problem PSQLException: No value specified for parameter ...
Previous Message Neil Macneale 2006-02-23 00:54:20 SSL trust and client authentication support