Re: the IN clause saga - Mailing list pgsql-jdbc

From Dmitry Tkach
Subject Re: the IN clause saga
Date
Msg-id 3F1D4AE5.2020504@openratings.com
Whole thread Raw
In response to Re: the IN clause saga  (Fernando Nasser <fnasser@redhat.com>)
List pgsql-jdbc
Fernando Nasser wrote:

> Thanks for summarizing it Oliver.
>
> I've asked Tom Lane about the backend behavior and he informed me that:
>
> 1) 7.4 backends do support parameters in the IN predicate, as ($1, $2,
> $3) (i.e., our (?, ?, ?) syntax).
>
> 2) 7.4 backends have a PostgreSQL specific extension that allows you
> to fill the IN predicate with a list: ($1)  (i.e., our (?) ).  One has
> to pass a PostgreSQL array, like integer[] to fill the list.  Note
> that the parenthesis is already in place, it is not generated by the ?
> expansion.

If I read this correctly, there is no need for any special handling
from  the driver side - just setArray() should work. Or am I missing
something?

Dima


pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: the IN clause saga
Next
From: Fernando Nasser
Date:
Subject: Re: the IN clause saga