freeTDS's ODBC driver running on a POSIX 64 bit platform returns in
SQLGetData() for the C type SQL_C_SLONG a 32 bit int instead of a 64
bit int but most likely indicates this properly in the number of bytes
returned.

See
for discussion with a possible workaround in