Hi,

> At work we use a framework that translates queries in the object-orientated
> form to sql, eg.

What framework do you use?

> 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);

> Is this type of comparison supported?

No.

Regards,
Thomas
-- 
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