mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Issue #2266: move INVISIBLE clause for MySQL/MariaDB table columns after the virtual and generation clause
This commit is contained in:
@@ -10959,10 +10959,6 @@ begin
|
||||
Result := Result + ' '; // Add space after each part
|
||||
end;
|
||||
|
||||
if InParts(cpInvisible) and Invisible and FConnection.Has(frInvisibleColumns) then begin
|
||||
Result := Result + 'INVISIBLE ';
|
||||
end;
|
||||
|
||||
if InParts(cpAllowNull) and (not IsVirtual) and (not FConnection.Parameters.IsAnyMSSQL) then begin
|
||||
if not AllowNull then
|
||||
Result := Result + 'NOT NULL '
|
||||
@@ -11012,6 +11008,10 @@ begin
|
||||
Result := Result + 'AS ('+GenerationExpression+') ' + Virtuality + ' ';
|
||||
end;
|
||||
|
||||
if InParts(cpInvisible) and Invisible and FConnection.Has(frInvisibleColumns) then begin
|
||||
Result := Result + 'INVISIBLE ';
|
||||
end;
|
||||
|
||||
if InParts(cpComment) then begin
|
||||
if (Comment <> '') and FConnection.Parameters.IsAnyMySQL then
|
||||
Result := Result + 'COMMENT ' + FConnection.EscapeString(Comment) + ' ';
|
||||
|
||||
Reference in New Issue
Block a user