Skip to Content.
Sympa Menu

freetds - Re: Crash in tsql

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Brian Bruns <camber AT ais.org>
  • To: TDS Development Group <freetds AT franklin.metalab.unc.edu>
  • Subject: Re: Crash in tsql
  • Date: Sun, 11 Aug 2002 12:37:31 -0400 (EDT)



Ok, I was on the right track, sizeof(*tds) differed between the two, I
just didn't have time to finish it off. config.h should be included from
tds.h (tds.h.in) otherwise we'll have this problem again in the future.

Checking the fix in now.

Brian

On Sun, 11 Aug 2002 freddyz77 AT tin.it wrote:

> > This has been the topic of discussion for the past couple of days. For
> > some reason tds->tds_ctx is NULL after the call to tds_connect(), although
> > it is set within tds_connect(). I haven't had a chance to track it any
> > further.
> >
> > Brian
> >
>
> Ok, after a bit debug (assembly level at the end) I found the problem.
> You do not include config.h in tsql, so tds_socket appear to tsql without
> iconv stuff.
>
> Add "#include <config.h>" on top of tsql.c and it run correctly.
> Perhaps is best to include config.h from tds.h.in ...
>
> freddy77
>





Archive powered by MHonArc 2.6.24.

Top of Page