Negative SYBMONEY patch

Koscheev Andrey andrey at
Thu Sep 14 08:48:24 EDT 2000

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;


-------------- next part --------------
An HTML attachment was scrubbed...

More information about the FreeTDS mailing list