db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Fischer <fisc...@seitenbau.net>
Subject RE: using prepared statements for "in"
Date Thu, 06 Mar 2008 10:04:55 GMT
I assume you are using XXPeer.doPSSelect ?
Looking at the source code, I cannot see a way. Not even Criteria.CUSTOM
will help :-(

Do jdbc drivers understand binding of a collection to a prepared statement
? I never tried it.

     Thomas

Raul Acevedo <raul@cantara.com> schrieb am 06.03.2008 03:53:59:

> When you use Criteria.addIn, Torque does not generate a prepared
> statement.  (Or at least it doesn't use bind variables for the "in"
> part, even if it does for other parts of the query.)
>
> Is there a way to get Torque to use bind variables for this?  Without
> having to convert the query into a bunch of "or"s?
>
> Raul
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message