Negative SYBMONEY patch

Koscheev Andrey andrey at eller.cz
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;
                  }


Andrey.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ibiblio.org/pipermail/freetds/attachments/20000914/edaa46f1/attachment.html 


More information about the FreeTDS mailing list