Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 85BF39F9297 for ; Mon, 5 Nov 2007 22:20:02 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 69452-06 for ; Mon, 5 Nov 2007 22:19:40 -0400 (AST) Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.178]) by postgresql.org (Postfix) with ESMTP id 07DE59F9295 for ; Mon, 5 Nov 2007 22:19:56 -0400 (AST) Received: by el-out-1112.google.com with SMTP id m34so437243ele for ; Mon, 05 Nov 2007 18:19:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=MXAzp94fEUCyB4rCyNV+i60bJfbfIBrCMBZKCMbCtZg=; b=XIMW+70VXXpZQSIqhQ3UtpmdKRcdxAxWxeP+l6fSO7xp1ZJQDQJF7i/GINAILWiY3rEW3jVyfiIXPKTW0vtKJyTUL8XfvoAN6hbhJ2kFyaDnDTdReMjChfCUjmav2mgim4kdFW42HzeoyQI4ImtTwie28kR8KZsrHB4ukfklx/8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=WjVb7IXE9feFw47hOo6qVZ5x7skg4481vBHl/WpE1qINF94j+f2RJlFpmGbSrJ7G4jbidgVXRl1YK9UR5Xn4YNN76SOJgxpIJSptT7LT12ngDjifSkeHo+4p2CsJgsO/NknhLbarbyhrUQiD5gEGz696Fh6Uw94AvwpZ0P0RTTM= Received: by 10.142.125.5 with SMTP id x5mr1357535wfc.1194315594411; Mon, 05 Nov 2007 18:19:54 -0800 (PST) Received: by 10.142.194.21 with HTTP; Mon, 5 Nov 2007 18:19:54 -0800 (PST) Message-ID: <3fccaa690711051819s15082dehd5c67951a6e43dee@mail.gmail.com> Date: Mon, 5 Nov 2007 20:19:54 -0600 From: "Andres Olarte" To: "Pgsql-Jdbc@Postgresql.Org" Subject: How to get the SQL query from a PreparedStatement? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/6 X-Sequence-Number: 17761 Hi! Is it possible to get the query string (including the formatted parameters) from a PreparedStatement? The idea is to get the query text, to send it into an stored procedure to be executed within the sp (with some other stuff). This is an idea I had to simulate variable parameter lists in stored procs. Is it possible? Thanks in advance, Andres