mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-12 20:49:06 +02:00
* mantis #30853, set precision and signspecialplaces in delphi compat way.
git-svn-id: trunk@38333 -
This commit is contained in:
parent
8a2cf56d51
commit
1d5d5682d2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user