Hello.

H2 compiles your query immediately, so it needs to know the data types of 
*some* arguments.

The usual workaround is to wrap the parameter into CAST function. This 
function doesn't need to know the type of its argument.

SELECT * FROM (SELECT CAST(? AS INT))

Of course, you need to know the data types of such parameters.

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/h2-database/0bdbbf7d-7dd0-4b1e-9d1e-a2ba6516e84c%40googlegroups.com.

Reply via email to