Dbase export: Invalid conversion for ftFloat field
Original Reporter info from Mantis: BigChimp
-
Reporter name: Reinier Olislagers
Original Reporter info from Mantis: BigChimp
- Reporter name: Reinier Olislagers
Description:
Similar to issue 20069, dbf export does not take into account some field types (e.g. ftFloat) for conversion.
The attached patch fpdbfexport.pp.diff:
- Clarifies some variable names, fixes some typos in the unit (lines 1-78 are only cosmetic/clarity changes).
- Adds support for previously missing datatypes:
- ftAutoInc,ftLargeInt: converted as integer
- ftBCD,ftCurrency,ftFloat,ftFMTBcd: converted as float
- MemoFieldTypes (ftMemo,ftFmtMemo,ftWideMemo): converted as string
- Converts unknown fields to string, instead of datetime
Steps to reproduce:
Compile and run dbfexporttest.zip from issue # 20069:
http://bugs.freepascal.org/file_download.php?file_id=14359&type=bug
It should give an error on conversion of the ftFloat field.
Mantis conversion info:
- Mantis ID: 20160
- OS: Windows
- OS Build: Vista
- Build: FPC git 5 September 2011
- Platform: x64
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 18985 (#aa4ab64e)
- Target version: 2.6.0