If you are using SybaseIQ beware of the behaviour of the JDBC driver. Indeed, the driver does some weird implicit conversion and every datatype is converted to integer

To avoid this, since version s17.2.8, you can use the option JDBC.BIND.DISABLE_IMPLICIT_CONVERSION. You can set it on a server's metadata in the "Advanced" part :