Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id D58C6B5DBE0 for ; Mon, 22 Aug 2011 00:00:15 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 30352-08 for ; Mon, 22 Aug 2011 03:00:07 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mail.postgresql.org (Postfix) with ESMTP id D24F9B5DBBE for ; Mon, 22 Aug 2011 00:00:06 -0300 (ADT) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QvKkA-00019p-0H for pgsql-jdbc@postgresql.org; Sun, 21 Aug 2011 20:00:06 -0700 Date: Sun, 21 Aug 2011 20:00:06 -0700 (PDT) From: vanayya To: pgsql-jdbc@postgresql.org Message-ID: <1313982005992-4721914.post@n5.nabble.com> In-Reply-To: References: <880308007@web.de> Subject: Re: Display SQL from Java Prepared Statement MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.863 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FORGED_YAHOO_RCVD=1.63, FREEMAIL_FROM=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201108/60 X-Sequence-Number: 22092 But its not working for me .. I have written like this : / PreparedStatement pStatement = null; .... pStatement = connection.prepareStatement(" update tblMember set address = ?"); pStatement.setObject(i++, "Jl. Setya Budi"); System.out.println("query : " + pStatement.toString()); / And the result : /query : org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement@1c1de1c/ I need log query from pStatement, Does anyone can help me ? regard, mimi -- View this message in context: http://postgresql.1045698.n5.nabble.com/Display-SQL-from-Java-Prepared-Statement-tp2175579p4721914.html Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.