freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
[freetds] SQLGetData() returns TEXT length minus one on Solaris 64b with SQL Server 2005
- From: Sebastien FLAESCH <sf AT 4js.com>
- To: freetds AT lists.ibiblio.org
- Subject: [freetds] SQLGetData() returns TEXT length minus one on Solaris 64b with SQL Server 2005
- Date: Thu, 31 Jan 2013 15:28:33 +0100
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
- [freetds] SQLGetData() returns TEXT length minus one on Solaris 64b with SQL Server 2005, Sebastien FLAESCH, 01/31/2013
Archive powered by MHonArc 2.6.24.