Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id A950D9F976E for ; Thu, 16 Nov 2006 19:28:43 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 28716-09 for ; Thu, 16 Nov 2006 23:28:39 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id 2A0CF9F942F for ; Thu, 16 Nov 2006 19:28:38 -0400 (AST) Received: (qmail 4911 invoked from network); 16 Nov 2006 23:28:36 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.14?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 16 Nov 2006 23:28:36 -0000 In-Reply-To: References: <455C0537.8040206@aol.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <087676AC-4DF5-4312-8596-EE17D9D9E4D9@fastcrypt.com> Cc: Ravi Periasamy , pgsql-jdbc@postgresql.org, jdb_switcher_dev Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: Support for named parameters in the PostgreSQL JDBC driver Date: Thu, 16 Nov 2006 18:28:34 -0500 To: Kris Jurka X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/83 X-Sequence-Number: 16125 The patch looks promising, however my gut reaction to this is that until it's supported by the protocol this will break more often than it will work. On top of that named parameters are not part of the SQL spec. Dave On 16-Nov-06, at 12:52 PM, Kris Jurka wrote: > > > On Thu, 16 Nov 2006, Ravi Periasamy wrote: > >> Dear PGSQL-JDBC Team, >> Could you please let me know if the support for "Named Parameters" >> in the >> JDBC driver is slated for some future release? >> > > Just recently I noticed an overlooked patch that implements this: > http://archives.postgresql.org/pgsql-jdbc/2006-07/msg00011.php > > The suggested patch isn't quite right, but its approach can work in > many cases. If functions are not overloaded then a simple lookup > of parameter names by the function name would work. If the > function is overloaded we might be able to use the parameter type > given by setXXX to try and determine what function we're actually > calling, but it's probably better to just error out in that case. > > Kris Jurka > > ---------------------------(end of > broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq >