Bug#413534: Another 64bit problem (binding SQL_C_SLONG values)

2007-03-12 Thread Steve Langasek
On Mon, Mar 12, 2007 at 11:02:30AM +, Enrico Zini wrote: > On Sun, Mar 11, 2007 at 09:06:16PM -0700, Steve Langasek wrote: > > On Sun, Mar 11, 2007 at 07:30:04PM +, Enrico Zini wrote: > > > http://msdn2.microsoft.com/en-us/library/ms714556.aspx > > > says that SQL_C_SLONG represents a long

Bug#413534: Another 64bit problem (binding SQL_C_SLONG values)

2007-03-12 Thread Steinar H. Gunderson
On Sun, Mar 11, 2007 at 07:30:04PM +, Enrico Zini wrote: > 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 >

Bug#413534: Another 64bit problem (binding SQL_C_SLONG values)

2007-03-12 Thread Enrico Zini
On Sun, Mar 11, 2007 at 09:06:16PM -0700, Steve Langasek wrote: > On Sun, Mar 11, 2007 at 07:30:04PM +, Enrico Zini wrote: > > http://msdn2.microsoft.com/en-us/library/ms714556.aspx > > says that SQL_C_SLONG represents a long int. > > Microsoft's docs are totally useless for correctly impleme

Bug#413534: Another 64bit problem (binding SQL_C_SLONG values)

2007-03-11 Thread Steve Langasek
Enrico, On Sun, Mar 11, 2007 at 07:30:04PM +, Enrico Zini wrote: > http://msdn2.microsoft.com/en-us/library/ms714556.aspx > says that SQL_C_SLONG represents a long int. Microsoft's docs are totally useless for correctly implementing ODBC on 64-bit architectures. Please explain the /problem/

Bug#413534: Another 64bit problem (binding SQL_C_SLONG values)

2007-03-11 Thread Enrico Zini
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 *) rgbValueBindR