>> Because in the second case, the sql will render to something like "SELECT *
>> from myTable where id = cast('ABCDE' as varchar(5))" instead of just "SELECT
>> * from myTable where id = ?".
>
> Yes, "SELECT * FROM myTable where id = cast(? as varchar(5))"Another issue I'm running into is the correct binding of NULL to a PreparedStatement, which I seem to be unable to do. I've asked this Stack Overflow question: http://stackoverflow.com/questions/12106422/how-to-set-bind-values-to-null-with-firebirds-jaybird-jdbc-driver Feel free to answer it, if you know the solution Cheers Lukas
