Skip to Content.
Sympa Menu

freetds - Re: [freetds] Cross compilation, warnings and errors

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT freetds.org>
  • To: freetds AT lists.ibiblio.org
  • Subject: Re: [freetds] Cross compilation, warnings and errors
  • Date: Tue, 25 Jan 2011 00:40:53 -0500

On Mon, 24 Jan 2011 22:22:36 -0500
Ken Collins <ken AT metaskills.net> wrote:

> >> #include <sqlfront.h>
> >> #include <sybdb.h>
> >> #include <syberror.h>
> >
> > Why?
>
> A bit of ignorance mixed with a touch of bad example code.
>
> I mostly knew everything you were talking about, but we did have one
> problem that caused us to use the MSDBLIB members of the DBDATEREC. After
> looking at the source for the latest version, it was apparant. Seems the
> sybase for month is 0-11 instead of 1-12. Easy fix and all tests are
> passing. FYI, you were right about syberror.h not being needed as well.

Oh, yes, that month range thing is nasty. You're not the first nor will be
the last.

>
> Please continue to help Luis if you can. He was not even at the point of
> installing TinyTDS, but was only working on FreeTDS. Hopefully when those
> are solved the changes you helped with will continue to make things work.

I'm delighted to help you both. I'm also found that the UG does in fact
specifically mention sqlfront.h, and I'm afraid it misled you and possibly
others. I'm surprised no one pointed it out before:

http://www.freetds.org/userguide/samplecode.htm#SAMPLECODE.INCLUDE

Gah.

--jkl




Archive powered by MHonArc 2.6.24.

Top of Page