Skip to Content.
Sympa Menu

freetds - RE: dbdata() call inconsistent...

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Brian Bruns" <camber AT ais.org>
  • To: freetds AT franklin.oit.unc.edu
  • Subject: RE: dbdata() call inconsistent...
  • Date: Wed, 11 Sep 2002 09:44:52 -0400



Ok, let's test this theory. If you did something like:

DBINT i;

memcpy(&i, dbdata(dbproc, 2), sizeof(i));

and then use 'i' instead of dbdata() directly does the problem go away?

The information in the row buffer *should* be 4 byte aligned, I remember
at least one alignment patch in the 0.60 series, so it'd be worth a try.
If not it's definately a bug on our part.

> I think ur right Brian,there seems to be an alignment problem with int...
>
> I have appended the trace below (not sure whether it's detailed enough)...
>
> dbdata(dbproc = 0xa7640, column = 1) called from function main
> dbdata returns 0xa7934 ""
> dbdata(dbproc = 0xa7640, column = 2) called from function main
> dbdata returns 0xa7939 ""

0xa7939 should be 0xa7938 (34 + 4 = 39?) maybe a TDS 7.0 thing, have you
tried setting the tds version to 4.2 and tring it?

TDSVER=4.2; export TDSVER

and then run. If that works it is specific to 7.0 and we'll know where to
look.

> ~
>
> would using .60 rectify this error???
>
> Thanks,
> Pravin Kumar S
>
> > ----------
> > From: Brian Bruns[SMTP:camber AT ais.org]
> > Reply To: TDS Development Group
> > Sent: Wednesday, September 11, 2002 4:52 PM
> > To: TDS Development Group
> > Subject: [freetds] RE: dbdata() call inconsistent...
> >
> >
> > What's your platform again? Solaris? I'm wondering if we don't have an
> > alignment bug. Can you provide a backtrace?
> >
> > Brian
> >




Archive powered by MHonArc 2.6.24.

Top of Page