* mantis #30853, set precision and signspecialplaces in delphi compat way.

git-svn-id: trunk@38333 -
This commit is contained in:
marco 2018-02-24 20:55:14 +00:00
parent 8a2cf56d51
commit 1d5d5682d2

View File

@ -4130,6 +4130,12 @@ begin
else { array or something like that }
not_implemented;
end;
// peephole, avoids problems with databases, mantis #30853
if (Result.Precision = 0) and (Result.SignSpecialPlaces = 0) then
begin
Result.Precision := 10;
Result.SignSpecialPlaces := 2;
end;
end;
function VarToBCD ( const aValue : Variant ) : tBCD;