X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id B5CA79DCC58 for ; Fri, 24 Feb 2006 13:45:53 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 59078-06 for ; Fri, 24 Feb 2006 13:45:52 -0400 (AST) X-Greylist: delayed 00:06:40.576126 by SQLgrey- Received: from web33010.mail.mud.yahoo.com (web33010.mail.mud.yahoo.com [68.142.206.74]) by postgresql.org (Postfix) with SMTP id DC4FE9DCBE1 for ; Fri, 24 Feb 2006 13:45:50 -0400 (AST) Received: (qmail 421 invoked by uid 60001); 24 Feb 2006 17:39:09 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.br; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=mCFjV3YfTsOttayfEBsxPLL4ANS/wbg01aVfs+SnfML6/AqgyFU4Uu3aXQVxpaQQeNwexYlLJp2mZfm9txMG1Lz8RTcUFgOSx4oGPlkAWIoadn1XJxIZ2qifGHp0ULlr4j1hwUPinWgzInFwxlatYRIQdxNZx4DAbgsGQYg4zXs= ; Message-ID: <20060224173909.419.qmail@web33010.mail.mud.yahoo.com> Received: from [200.178.173.226] by web33010.mail.mud.yahoo.com via HTTP; Fri, 24 Feb 2006 14:39:09 ART Date: Fri, 24 Feb 2006 14:39:09 -0300 (ART) From: Hugo Sacramento Subject: Retrieve Query To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-614299454-1140802749=:97818" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.001 required=5 tests=[HTML_MESSAGE=0.001] X-Spam-Score: 0.001 X-Spam-Level: X-Archive-Number: 200602/168 X-Sequence-Number: 14765 --0-614299454-1140802749=:97818 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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! --0-614299454-1140802749=:97818 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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! --0-614299454-1140802749=:97818--