Sebastien FLAESCH
2013-01-31 14:28:33 UTC
Hi all,
Context:
$ uname -a
SunOS s64x100 5.10 Generic_120012-14 i86pc i386 i86pc
FreeTDS versions tested:
- freetds-0.92.dev.20120312
- freetds-dev.0.92.377
When fetching a TEXT from the database (SQL Server 2005), using SQL_DATA_AT_EXEC,
it appears that the SQLGetData() function returns the size of the text data,
minus one...
I have tested the same FreeTDS version on a Linux 32b, and SQLGetData() returns
the correct length as expected...
I will continue to investigate, but I wanted to ask if this is a know issue.
When connecting to SQL Server 2008 R2, this does not occur, because SQLGetData()
returns SQL_NO_TOTAL and we fetch text pieces in a different way...
Thanks
Seb
Context:
$ uname -a
SunOS s64x100 5.10 Generic_120012-14 i86pc i386 i86pc
FreeTDS versions tested:
- freetds-0.92.dev.20120312
- freetds-dev.0.92.377
When fetching a TEXT from the database (SQL Server 2005), using SQL_DATA_AT_EXEC,
it appears that the SQLGetData() function returns the size of the text data,
minus one...
I have tested the same FreeTDS version on a Linux 32b, and SQLGetData() returns
the correct length as expected...
I will continue to investigate, but I wanted to ask if this is a know issue.
When connecting to SQL Server 2008 R2, this does not occur, because SQLGetData()
returns SQL_NO_TOTAL and we fetch text pieces in a different way...
Thanks
Seb