"Gary Doades" <gpd@gpdnet.co.uk> writes:
> I can cast inside the function, this is my current solution. Given that
> there is no implicit downcast wouldn't the best solution be to get the
> ODBC driver do the cast on the function call?
I think that would likely fix this example at the cost of breaking many
others. Exactly what conditions would you have the ODBC driver cast to
int2 under?
regards, tom lane