danieleteti / delphimvcframework

DMVCFramework (for short) is a popular and powerful framework for WEB API in Delphi. Supports RESTful and JSON-RPC WEB APIs development.
Apache License 2.0
1.23k stars 356 forks source link

TMVCJsonDataObjectsSerializer.JsonObjectToDataSet not recognises ftExtended DataType #730

Closed Pecaas closed 7 months ago

Pecaas commented 8 months ago

Hi Daniele,

I have an issue with TMVCJsonDataObjectsSerializer.JsonObjectToDataSet method. My databases contains some fields of type TFieldType.ftExtended which leads to EMVCDeserializationException. Why is that DataType missing? If appended, it works good for me. Thank you.

...
       **// not included now  TFieldType.ftExtended,**
        TFieldType.ftFloat, TFieldType.ftFMTBcd, TFieldType.ftBCD:
          Field.AsFloat := AJSONObject.F[lName];
...
      else
        raise EMVCDeserializationException.CreateFmt('Cannot find type for field "%s"', [Field.FieldName]);
...