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;
|
||||
dtcInteger: begin
|
||||
if not ColQuery.IsNull('NUMERIC_PRECISION') then begin
|
||||
MaxLen := ColQuery.Col('NUMERIC_PRECISION');
|
||||
if (not ColQuery.IsNull('NUMERIC_PRECISION')) then begin
|
||||
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;
|
||||
dtcReal: begin
|
||||
|
Reference in New Issue
Block a user