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:
Ansgar Becker
2024-06-18 16:57:40 +02:00
parent 5b214a3d75
commit c5172ba72d

View File

@ -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