delphi-10.2-tokyo

TFDQuery and SQLite: Type mismatch for field, expecting: LargeInt actual: WideString

别等时光非礼了梦想. 提交于 2019-11-28 14:17:25
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

TFDQuery and SQLite: Type mismatch for field, expecting: LargeInt actual: WideString

时光总嘲笑我的痴心妄想 提交于 2019-11-27 19:33:12
问题 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