Skip to Content.
Sympa Menu

freetds - Re: convert_int4 on Solaris(Sparc)

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Brian Bruns <camber AT umcc.ais.org>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: convert_int4 on Solaris(Sparc)
  • Date: Fri, 29 Jan 1999 22:47:05 -0500 (EST)


Sorry to follow myself up, but I just had a brief look at the code at I
think the following should work (in token.c)

curcol->column_offset = info->row_size;
info->row_size += curcol->column_size + 1;
+ /* actually this 4 should be a machine dependent #define */
+ remainder = info->row_size % 4;
+ if (remainder) info->row_size += (4 - remainder);

This change needs to be made in tds_process_col_info() (for 4.2), and
tds_process_result() (for 5.0) and the function that handles compute
results (name is slipping my mind, maybe tds_process_compute_result() or
something close?)

Let me know how it works,

Brian

On Fri, 29 Jan 1999, Brian Bruns wrote:

> Hmmm,
>
> The best way to fix this would be to change tds_process_result() (in the
> tds/token.c file) to correctly set colinfo->column_offset and friends to a
> word aligned value. Boy, this really slipped my mind for some reason.
>
> Brian
>





Archive powered by MHonArc 2.6.24.

Top of Page