Re: Support for named parameters in the PostgreSQL JDBC driver - Mailing list pgsql-jdbc

From Dave Cramer
Subject Re: Support for named parameters in the PostgreSQL JDBC driver
Date
Msg-id 087676AC-4DF5-4312-8596-EE17D9D9E4D9@fastcrypt.com
Whole thread Raw
In response to Re: Support for named parameters in the PostgreSQL JDBC driver  (Kris Jurka <books@ejurka.com>)
List pgsql-jdbc
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
>


pgsql-jdbc by date:

Previous
From: Mikko Tiihonen
Date:
Subject: ResultSet.getBytes() of bytea speedup batch
Next
From: Oliver Jowett
Date:
Subject: Re: help with front/backend datatype converting