freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- 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
-
Re: killer query
, (continued)
- Re: killer query, Bill Thompson, 06/24/2002
- Re: killer query, ZIGLIO Frediano, 06/24/2002
- Re: killer query, Bill Thompson, 06/24/2002
- Re: killer query, Bill Thompson, 06/24/2002
- Re: killer query, ZIGLIO Frediano, 06/24/2002
- Re: killer query, ZIGLIO Frediano, 06/24/2002
- Re: killer query, Thompson, Bill D (London), 06/24/2002
- Re: killer query, Lowden, James K, 06/24/2002
- Re: killer query, Lowden, James K, 06/24/2002
- Re: killer query, Brian Bruns, 06/24/2002
- Re: killer query, Lowden, James K, 06/24/2002
- Re: killer query, ZIGLIO Frediano, 06/25/2002
- Re: killer query, Brian Bruns, 06/25/2002
- Re: killer query, James K. Lowden, 06/25/2002
- Re: killer query, ZIGLIO Frediano, 06/26/2002
- Re: killer query, Bill Thompson, 06/26/2002
- Re: killer query, ZIGLIO Frediano, 06/26/2002
- Re: killer query, Bill Thompson, 06/26/2002
- Re: killer query, Brian Bruns, 06/26/2002
- Re: killer query, ZIGLIO Frediano, 06/26/2002
- Re: killer query, Bill Thompson, 06/26/2002
Archive powered by MHonArc 2.6.24.