"Gary Doades" <gpd@gpdnet.co.uk> writes:
> AFAICS it is only int2 types that are not typecast. All other
> datatypes (except string and int4 which don't need it) are typecast
> explicitly by the driver before being passed to the server.
I see. AFAIR you hadn't mentioned that you were declaring the parameter
as smallint to ODBC. I tend to agree that a cast should be added in
that case. It's not my code though ...
regards, tom lane