Skip to Content.
Sympa Menu

freetds - Re: [freetds] dbdatecrack producing erroneous results

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Ken Collins <ken AT metaskills.net>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] dbdatecrack producing erroneous results
  • Date: Tue, 24 Apr 2012 16:03:23 -0400


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






Archive powered by MHonArc 2.6.24.

Top of Page