Hi Kris,
thanks for your answers.
I can change the import to use setObject(int, Object, int) which works fine.
> The reason the driver doesn't do this is twofold.
>
> 1) The driver doesn't know the target server type. Retrieving that
> would induce an extra network roundtrip for execution.
>
> 2) Sometimes the server doesn't know the the target type and it's better
> for the driver/user to provide it. Consider the call of an overloaded
> function: SELECT myfunc(?), if it has an implementation for both float
> and int, you want the user/driver to indicate which one should be called
> because the server doesn't know.
I can see the problems there ;)
Regards
Thomas