Wrong numeric conversion

From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: pgsql-odbc(at)postgresql(dot)org
Subject: Wrong numeric conversion
Date: 2005-01-16 15:26:18
Message-ID: 41EA879A.9030802@pse-consulting.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

With CVS HEAD, numeric values are not read correctly.
The SQL_NUMERIC_STRUCT is filled with
.precision=3, .scale=5 for a number like 500.00123, which MSDASQL will
interpret as .00123 (noticed when MSDASQL had to convert it to a
string). Obviously the precision should be 8 or more.
The attached patch corrects this.

Regards,
Andreas

Attachment Content-Type Size
convert.c.patch text/x-patch 462 bytes

Browse pgsql-odbc by date

  From Date Subject
Next Message Dave Page 2005-01-17 10:13:29 Re: Wrong numeric conversion
Previous Message George Weaver 2005-01-16 14:03:00 Re: ODBC release plans?