using delphi xe4 and dbexpress on sqllite3
This issue occurs only when the dataset is empty.
This is only when the dataset is empty. When dataset is filled with 1 or more records, the FieldTypes are correct.
I get around this problem by adding a record with ID=-1 to my tables, so the table wont be empty anymore and then in application I ignore records with ID==-1 when populating data.