mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Leave numeric precision and scale away from DOUBLE column detection if either of them is empty. Closes #953
This commit is contained in:
@ -4797,7 +4797,8 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
dtcReal: begin
|
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')
|
MaxLen := ColQuery.Col('NUMERIC_PRECISION')
|
||||||
+ ',' + StrToIntDef(ColQuery.Col('NUMERIC_SCALE'), 0).ToString;
|
+ ',' + StrToIntDef(ColQuery.Col('NUMERIC_SCALE'), 0).ToString;
|
||||||
end;
|
end;
|
||||||
|
Reference in New Issue
Block a user