Bug 90499 - Decimal value not read correct with numeric field fox pro 9 table (localization depending)
Summary: Decimal value not read correct with numeric field fox pro 9 table (localizati...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
4.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-07 14:45 UTC by scoccac
Modified: 2016-06-10 07:46 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Database files for testing ADO connection (221.43 KB, application/zip)
2015-04-07 16:33 UTC, scoccac
Details
import from dbf into base (86.88 KB, image/png)
2015-04-07 16:59 UTC, raal
Details
Articoli table with Memo filed filled (2.66 KB, application/zip)
2015-04-07 17:11 UTC, scoccac
Details

Note You need to log in before you can comment on or make changes to this bug.
Description scoccac 2015-04-07 14:45:57 UTC
When connect to a fox pro table with ADO Connection with next connection string: 
"Provider=vfpoledb;Data Source=C:\MyDbFolder\MyDbContainer.dbc;
Collating Sequence=machine;"
the decimal value of numeric field are not read correct but only the integer value appear without decimal.
Another bug or feature request: the ability of applying more filter to the field beacuse now max only three filter can be applied to the table.
Please correct. Thanks.
Comment 1 Alex Thurgood 2015-04-07 15:12:44 UTC
@scocacc: please provide a sample test file and instructions for setting up the connection if possible

For exeample, your ADO connection states Provide=vfpoledb - what kind of provider is this ? Is it a specific database driver that comes with FoxPro 9, or is it present by default on Windows systems ?

SETTING to NEEDINFO pending requested information. Please set to UNCONFIRMED again once this information has been provided.

Please open a separate report for the number of filters available - quite possibly a bug request for enhancement for this functionality has already been filed (although I couldn't find it after a brief search in bugzilla).
Comment 2 Alex Thurgood 2015-04-07 15:13:31 UTC
@scoccac : please also indicate the version of LibreOffice you are using.
Comment 3 scoccac 2015-04-07 15:40:07 UTC
To replicate the bug you can create a new connection to external database and using the previous indicate connection string. 
vfpoledb is an OLE Db microsoft external driver available at http://www.microsoft.com/en-us/download/details.aspx?id=14839. 
I'm using 4.4.0.3 version of Libreoffice. 
I hope these info are enough. I'm available for other info. Thanks
Comment 4 raal 2015-04-07 16:10:49 UTC
@scocacc: please provide a sample test file. Also please test with actual version 4.4.2.2.
Comment 5 scoccac 2015-04-07 16:33:46 UTC
Created attachment 114670 [details]
Database files for testing ADO connection

Open "Articoli" table, column "listino1" has a decimal value 10,000 with libre office base but the real value is 10,586
Comment 6 scoccac 2015-04-07 16:36:06 UTC
Files contains foxpro table with a table "articoli" and a column "listino1". The value read by Libreoffice base is 10.000 but the real value is 10.586
Comment 7 scoccac 2015-04-07 16:37:09 UTC
I updated the version of libreoffice to 4.4.2.2 but the bug is living.
Comment 8 scoccac 2015-04-07 16:37:42 UTC
is alive:)
Comment 9 raal 2015-04-07 16:59:52 UTC
Created attachment 114671 [details]
import from dbf into base

import from dbf into base with embedded base driver
Comment 10 scoccac 2015-04-07 17:11:02 UTC
Embedded dBase driver does not read correctly memo field i attach new file with memo field filled with:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
But no words are display.
Comment 11 scoccac 2015-04-07 17:11:41 UTC
Created attachment 114673 [details]
Articoli table with Memo filed filled
Comment 12 scoccac 2015-04-07 17:12:42 UTC
For this reason I use VFP ole db driver for MEMO field but has a bug...(like dBase driver).
Comment 13 scoccac 2015-08-01 08:50:43 UTC
I found why decimal number are not displayed correctly using microsoft ole db driver in libreoffice dBase ADO connections: the number values are retrived using windows locale number separators. Now in Italy decimas separators is "," meanwhile EN using ".". This is the reason because the decimal values are not read correctly. I not found anyway to solve this issue only change the windows system values.
Comment 14 Alex Thurgood 2016-06-10 07:46:19 UTC
Per comment 13, OP has found a workaround, so WFM