Hi Thomas,

Thanks for the reply.

Thomas Mueller wrote:
Hi,
At work we use a framework that translates queries in the object-orientated
form to sql, eg.
What framework do you use?
It's our own internal framework, not published on the net yet. Basically Data Access Layer code generation with integrated object orientated query language and object orientated language integrated querying (no strings).
Which was translated to:
select * from sometable where ? = ?
followed by
preparedStatement.setInt(1, 1);
preparedStatement.setInt(2, 1);

Instead, I would use:
select * from sometable where 1 = ?
preparedStatement.setInt(1, 1);
Thanks, we'll do that.
Is this type of comparison supported?
No.
OK, we'll work around that.

Thanks,
Jesse
-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.


Reply via email to