You are not logged in.
Pages: 1
type
TSQLmORMotTest = class(TSQLRecord)
private
fLAT: double;
fDataInicio: TDateTime;
published
property LAT: double read fLAT write fLAT;
property DataInicio: TDateTime read fDataInicio write fDataInicio;
end;
...
use: TSQLDBFireDACConnectionProperties.Create(FIREDAC_PROVIDER[dFirebird],...);
...
var
AmORMotTestAdd,
AmORMotTestRet: TSQLmORMotTest;
begin
AmORMotTestAdd := TSQLmORMotTest.Create;
AmORMotTestAdd.LAT := 987.321;
AmORMotTestAdd.DataInicio := EncodeDate(2014, 10, 7);
AID := DBServer.Add(AmORMotTestAdd, True);
AmORMotTestRet := TSQLmORMotTest.Create(DBServer, AID);
CheckEquals(ObjectToJSON(AmORMotTestAdd), ObjectToJSON(AmORMotTestRet)); //error
end;
Solution:
{ SynDBDataset.TSQLDBDatasetStatementAbstract }
function TSQLDBDatasetStatementAbstract.ColumnTypeNativeToDB(aNativeType: TFieldType): TSQLDBFieldType;
begin
...
ftSingle:
result := SynCommons.ftCurrency;
ftTimeStamp:
result := SynCommons.ftDate;
...
end;
Offline
Should be fixed now by http://synopse.info/fossil/info/7e3ff4ad37
Thanks a lot for the feedback!
Offline
Pages: 1