on 2014 Jul 22 1:30 PM
We just upgraded from ASA 11 to ASA 16, and are noticing some test failures because values previously retrieved as 0.0000 and 4.500 are now coming in as 0 and 4.5.
We are using the iAnywhere.Data.SQLAnywhere.v4.0 version 16.0.0.19484
Is there any setting we can change to get those zeroes preserved ?
I have reproduced this change in behaviour with a simple datagrid.
SACommand selectCmd = new SACommand( "SELECT * FROM Numerics", conn );
SADataReader dr = selectCmd.ExecuteReader();
System.Windows.Forms.DataGrid dataGrid;
dataGrid = new System.Windows.Forms.DataGrid();
dataGrid.Location = new Point(10, 10);
dataGrid.Size = new Size(575, 200);
dataGrid.CaptionText = ".NET Example";
this.Controls.Add(dataGrid);
dataGrid.DataSource = dr;
dataGrid.Show();
dr.Close();
I will check into this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is a bug that was introduced 2013/12. It will be corrected in 16.0 and 12.0.1 in an upcoming SP/EBF. The provider should only attempt to trim trailing zeroes when the precision of the incoming value exceeds Microsoft's maximum decimal precision (~29 digits).
User | Count |
---|---|
68 | |
8 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.