Leave numeric precision and scale away from DOUBLE column detection if either of them is empty. Closes #953

This commit is contained in:
Ansgar Becker
2020-06-27 18:33:10 +02:00
parent 9d95fc010c
commit 561bba95d0

View File

@ -4797,7 +4797,8 @@ begin
end;
end;
dtcReal: begin
if not ColQuery.IsNull('NUMERIC_PRECISION') then begin
// See #953
if (not ColQuery.IsNull('NUMERIC_PRECISION')) and (not ColQuery.IsNull('NUMERIC_SCALE')) then begin
MaxLen := ColQuery.Col('NUMERIC_PRECISION')
+ ',' + StrToIntDef(ColQuery.Col('NUMERIC_SCALE'), 0).ToString;
end;