Hello, http://msdn2.microsoft.com/en-us/library/ms714556.aspx says that SQL_C_SLONG represents a long int.
convert.c has it like this:
case SQL_C_SLONG:
case SQL_C_LONG:
len = 4;
if (bind_size > 0)
*((SDWORD *) rgbValueBindRow) = atol(neut_str);
else
*((SDWORD *) rgbValue + bind_row) = atol(neut_str);
break;
but here on amd64 sizeof(long int) == 8. I had a look at upstream:
http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/psqlodbc/psqlodbc/convert.c?rev=1.155&content-type=text/x-cvsweb-markup
and it looks like it's still wrong.
Ciao,
Enrico
--
GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <[EMAIL PROTECTED]>
signature.asc
Description: Digital signature

