Skip to Content.
Sympa Menu

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

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: ZIGLIO Frediano <Frediano.Ziglio AT vodafoneomnitel.it>
  • To: "'TDS Development Group'" <freetds AT franklin.metalab.unc.edu>
  • Subject: RE: dbdata() call inconsistent...
  • Date: Wed, 11 Sep 2002 15:53:47 +0200


>
> 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.
>

Arghh...

in token.c

if (IS_TDS42(tds)) {
remainder = info->row_size % align;
if (remainder)
info->row_size += (align - remainder);
}

Why IS_TDS42 ??

freddy77

=================================
"STRICTLY PERSONAL AND CONFIDENTIAL

This message may contain confidential and proprietary material for the sole
use of the intended recipient. Any review or distribution by others is
strictly prohibited. If you are not the intended recipient please contact
the sender and delete all copies.
The contents of this message that do not relate to the official business of
our company shall be understood as neither given nor endorsed by it."

=================================




Archive powered by MHonArc 2.6.24.

Top of Page