Re: Problem with connection.
Frediano Ziglio <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]>: > 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 _______________________________________________ FreeTDS mailing list [email protected] http://lists.ibiblio.org/mailman/listinfo/freetds