With CVS HEAD, numeric values are not read correctly.
authorDave Page <dpage@pgadmin.org>
Mon, 17 Jan 2005 10:12:52 +0000 (10:12 +0000)
committerDave Page <dpage@pgadmin.org>
Mon, 17 Jan 2005 10:12:52 +0000 (10:12 +0000)
commit20f72d3c5acc6a81bc6de2facecdf3f14992b072
tree9792e0e72ff3778bc51edb526f489e6f706f8126
parentfeb1ee7a3be48db1901dcc9ad5a3813e5d4676fe
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.
[Andreas Pflug]
convert.c