pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Kris Jurka <books@ejurka.com>
Cc: Ravi Periasamy <rperiasamy@aol.com>
Cc: pgsql-jdbc@postgresql.org
Cc: jdb_switcher_dev <jdb_switcher_dev@LISTSERV.SUP.AOL.COM>
Subject: Re: Support for named parameters in the PostgreSQL JDBC driver
Date: Thu, 16 Nov 2006 18:28:34 -0500
Message-ID: <087676AC-4DF5-4312-8596-EE17D9D9E4D9@fastcrypt.com> (raw)
In-Reply-To: <Pine.BSO.4.64.0611161249120.23576@leary2.csoft.net>
References: <455C0537.8040206@aol.com>
	<Pine.BSO.4.64.0611161249120.23576@leary2.csoft.net>

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
>




view thread (4+ messages)

Message-ID: <087676AC-4DF5-4312-8596-EE17D9D9E4D9@fastcrypt.com>
Permalink:  ../087676AC-4DF5-4312-8596-EE17D9D9E4D9@fastcrypt.com/
Also on:    postgresql.org/message-id/087676AC-4DF5-4312-8596-EE17D9D9E4D9@fastcrypt.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: pg@fastcrypt.com, books@ejurka.com, rperiasamy@aol.com, jdb_switcher_dev@LISTSERV.SUP.AOL.COM
  Subject: Re: Support for named parameters in the PostgreSQL JDBC driver
  In-Reply-To: <087676AC-4DF5-4312-8596-EE17D9D9E4D9@fastcrypt.com>
  References: <455C0537.8040206@aol.com> <Pine.BSO.4.64.0611161249120.23576@leary2.csoft.net> <087676AC-4DF5-4312-8596-EE17D9D9E4D9@fastcrypt.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox