[freetds] Bug in ct_describe
norbert at linuxnetworks.de
Thu Sep 7 17:42:21 EDT 2006
I had some headache with ct_fetch, returning CS_ROW_FAIL in a more or less
random manner. My investigation had shown that ct_describe doesn't set
the "format" member of the CS_DATAFMT struct. Therefore cs_convert returns
CS_FAIL if it hits a column of a type which can be modified by a CS_FMT_*
parameter and the value of "format" is no a valid CS_FMT_*.
Setting it to CS_FMT_UNUSED in my code all the time fixed the problem and
Sybase' ctlib seem to do the same.
OpenPGP public key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.ibiblio.org/pipermail/freetds/attachments/20060907/1c8101ba/attachment.bin
More information about the FreeTDS