Skip to Content.
Sympa Menu

freetds - Re: TDS 7.0 and decimals

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: TDS 7.0 and decimals
  • Date: Thu, 19 Oct 2000 15:15:09 -0400


You may want to try the following patch in tds/convert.c
Not sure if it'll work, but it's the obviously wrong part :-)

Brian


case SYBMONEY:
return tds_convert_money(srctype,src,
desttype,dest,destlen);
break;
+ case SYBDECIMAL:
case SYBNUMERIC:
return tds_convert_numeric(srctype,(TDS_NUMERIC *)
src,srclen,
desttype,dest,destlen);
break;

> When I try to pull some decimals out of the database I get this error
> message:
>
> Attempting to convert unknown source type 106
>
> This works fine with TDS 4.2.
>
> The decimal datatype in SQL Server 7 appears to be 9 bytes long.
>
> Brandon M. Reynolds Ph: (330) 644-3059
> Systems Engineer Fax: (330) 644-8110
> Commercial Timesharing Inc. Email: bmr AT comtime.com




Archive powered by MHonArc 2.6.24.

Top of Page