Re: ANY subquery and PreparedStatements - Mailing list pgsql-jdbc

From Jason S. Friedman
Subject Re: ANY subquery and PreparedStatements
Date
Msg-id 20030219145721.GA3142@charles
Whole thread Raw
In response to Re: ANY subquery and PreparedStatements  (Felipe Schnack <felipes@ritterdosreis.br>)
Responses Re: ANY subquery and PreparedStatements  (Felipe Schnack <felipes@ritterdosreis.br>)
List pgsql-jdbc
My two cents:  it would be great if Java had a built-in (JDK) method that did the same thing as the Perl join command:

@array = ( 'apple', 'banana', 'orange' );
$fruit = join( ',', @array );
# result is 'apple,banana,orange'

On Wed, Feb 19, 2003 at 09:56:47AM -0300, Felipe Schnack wrote:
>   Yes, this would work... but it's not very pretty :-)
>   JDBC's preparedstatements should have *some way* to handle that...
> simply makeing impossible to use such an useful keyword is quite bad...
>   Or jdbc doesnt have it?
>
> On Wed, 2003-02-19 at 09:49, Pavel Fokin wrote:
> > Felipe Schnack wrote:
> >
> > >  I'm afraid it kind of impossible to use PreparedStatements with the
> > >"ANY" subquery keyword... For example, if I take this query and prepare
> > >it:
> > >  "select * from <table> where <field> any (?)"
> > >  How can I set my parameter as a list of values, so my query searches
> > >for for different values of the specified field?

pgsql-jdbc by date:

Previous
From: "Nick Fankhauser"
Date:
Subject: Re: pg73jdbc3.jar ClassNotFoundException
Next
From: Felipe Schnack
Date:
Subject: Re: ANY subquery and PreparedStatements