[freetds] SQLDescribeColumn and tds_next_placeholders_ucs2le
ZIGLIO, Frediano, VF-IT
Frediano.Ziglio at vodafone.com
Mon Mar 22 02:45:29 EST 2004
> > I think it's SQLDescribeCol. SQLDescribeCol do not return the char
> > representation, it return type length, so 16 it right. You
> should use
> > SQLColAttribute(SQL_DESC_DISPLAY_SIZE) to get display size.
> Thanks for a tip with SQLColAttribute. Really the reason I wrote about
> SQLDescribeCol is that if I run my program under DOS with MS
> version of
> ODBC SQLDescribeCol it returns column size 36. It is just a little
> confusing about which function is right to use.
I don't think MS update ODBC for DOS that much :)
This is the reason. ODBC use TDS protocol version 4.2 so server cannot
send GUID data and send just GUID converted to varchar... So you see the
> > Fixed in CVS. A problem with " termination.
> Thanks a lot!!! It works fine now :)
James should release 0.62.2 to fix this and some other issues.
More information about the FreeTDS