mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Issue #1965 and issue #1088: do not force integer display width when composing CREATE TABLE code on MySQL 8.0.17+. The user may set one if he likes, but that will now show a server warning in the log panel.
This commit is contained in:
@ -5816,8 +5816,11 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
dtcInteger: begin
|
dtcInteger: begin
|
||||||
if not ColQuery.IsNull('NUMERIC_PRECISION') then begin
|
if (not ColQuery.IsNull('NUMERIC_PRECISION')) then begin
|
||||||
MaxLen := ColQuery.Col('NUMERIC_PRECISION');
|
if Parameters.IsMySQL(True) and (ServerVersionInt >= 80017) then
|
||||||
|
// Integer display width is deprecated as of MySQL 8.0.17
|
||||||
|
else
|
||||||
|
MaxLen := ColQuery.Col('NUMERIC_PRECISION');
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
dtcReal: begin
|
dtcReal: begin
|
||||||
|
Reference in New Issue
Block a user