Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SQLDescribeCol() returns number of bytes for the ColumnSizePtr parameter

9 views
Skip to first unread message

sebflaesch

unread,
Jul 27, 2010, 4:28:17 AM7/27/10
to
Hi all,

Env: Sybase ASE 15.5 Developer Edition, Linux 32b and Windows 32b.

According to the Microsoft specification of ODBC, SQLDescribeCol()
returns a number of characters in the ColumnSizePtr parameter:

http://msdn.microsoft.com/en-us/library/ms716289(v=VS.85).aspx

I have tested on both Linux and Windows (32b):

When using a [VAR]CHAR(10) column, I get 10 in ColumnSizePtr, and when
using UNI[VAR]CHAR(10), I get 20, which is the number of bytes for
UNI[VAR]CHAR(10) storage...

Is this expected or a bug of Sybase ODBC driver?

Thanks!
Seb

0 new messages