TFDQuery and SQLite: Type mismatch for field, expecting: LargeInt actual: WideString
Using Delphi 10.2, SQLite and Teecharts. My SQLite database has two fields, created with: CREATE TABLE HistoryRuntime ('DayTime' DateTime, Device1 INTEGER DEFAULT (0)); I access the table using a TFDQuery called qryGrpahRuntime with the following SQL: SELECT DayTime AS TheDate, Sum(Device1) As DeviceTotal FROM HistoryRuntime WHERE (DayTime >= "2017-06-01") and (DayTime <= "2017-06-26") Group by Date(DayTime) Using the Field Editor in the Delphi IDE, I can add two persistent fields, getting TheDate as a TDateTimeField and DeviceTotal as a TLargeIntField . I run this query in a program to create