Re: dbdatecrack producing erroneous results

Ken Collins <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
Hey James,

> How do you deal with the fact that Microsoft defines dbdatecrack() to
> return months 1-12 and Sybase uses 0-11?  

Easy, I define in my C program that I expect dbdatecrack() to use the sybase values via my main header.

https://github.com/rails-sqlserver/tiny_tds/blob/master/ext/tiny_tds/tiny_tds_ext.h#L4-5

That way I take control and the compile time fall back configuration is never even considered. I assumed this is what most did?


 - Ken
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.