Skip to Content.
Sympa Menu

freetds - Re: killer query

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: "'TDS Development Group'" <freetds AT franklin.metalab.unc.edu>
  • Subject: Re: killer query
  • Date: Mon, 24 Jun 2002 14:25:23 -0400


> From: Brian Bruns [mailto:camber AT ais.org]
> Sent: June 24, 2002 12:46 PM
>
> Jim there is code int tds_process_result (and the 4.2 half of the
> function) to handle aligning the row buffer, but apparently this is
> missing from tds7_process_result(). It should be fairly easy to
> implement, just look for the stuff around the variable 'remainder'.

Thanks, Brian. I lifted that code and it seems to work.

Now appearing in src/tds/token.c::tds7_process_result:
705 if (is_numeric_type(curcol->column_type)) {
706 info->row_size += sizeof(TDS_NUMERIC) + 1;
707 }
708
+ 709 /* actually this 4 should be a machine dependent #define */
+ 710 remainder = info->row_size % 4;
+ 711 if (remainder) info->row_size += (4 - remainder);
712
713 }
714
715 /* all done now allocate a row for tds_process_row to use */
716 info->current_row = tds_alloc_row(info);
--jkl




Archive powered by MHonArc 2.6.24.

Top of Page