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