[freetds] Problem with connection.
Frediano Ziglio
freddy77 at gmail.com
Tue Jan 19 03:50:16 EST 2010
I looked at header, documentation and googled... there is no direct
support for bigint in dblib... you should use numeric. DBINT8/DBINT64
would be an extension to dblib. It seems Sybase defined support for
bigint only for ctlib (odbc already support 64bit integers) using
CS_BIGINT. We could define an extension for this binding and type.
tds_willconvert and tds_convert already support SYBINT8 so the
extension would affect only dblib library not libTDS code.
freddy77
2010/1/19 James K. Lowden <jklowden at freetds.org>:
> Fernando wrote:
>> I have to bind a int64 (long) data, and
>> looking through the headers files, I can't find something like
>> "DBINT64".
>> I've looked at tds_sysdep_public.h file and i found this:
>>
>> #define tds_sysdep_int64_type long
>>
>> but in the sybdb.h file, there is no typedef for this, only
>>
>> typedef tds_sysdep_int32_type DBINT;
>>
>> So my question is: Can I put this typedef tds_sysdep_int64_type
>> DBINT64 in the sybdb.h? or use the SYBINT8 type??
>
> Well, maybe it should be DBBIGINT. To be of much use, we also need
> DBBIGBIND, and modifications to tds_willconvert() and tds_convert().
>
> --jkl
More information about the FreeTDS
mailing list