Skip to Content.
Sympa Menu

freetds - Negative SYBMONEY patch

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Koscheev Andrey" <andrey AT eller.cz>
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: Negative SYBMONEY patch
  • Date: Thu, 14 Sep 2000 14:48:24 +0200

 
To have negative SYMBONEY values correctly converted to char replace line
 
number[7] += 1;
 
in file fretds/src/tds/numeric.c, function tds_money_to_string() with the following stuff:

                for (i=7; i>=0; i--)
                  {
                  number[i] += 1;
                  if (number[i]!=0) break;
                  }

 
Andrey.
 


  • Negative SYBMONEY patch, Koscheev Andrey, 09/14/2000

Archive powered by MHonArc 2.6.24.

Top of Page