mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Issue #1028: Compatibility to old MySQL 4.x servers where SHOW FULL COLUMNS did not yet have "Collation" and "Comment" columns.
This commit is contained in:
@ -4852,7 +4852,7 @@ begin
|
|||||||
Col.Name := ColQuery.Col(0);
|
Col.Name := ColQuery.Col(0);
|
||||||
Col.OldName := Col.Name;
|
Col.OldName := Col.Name;
|
||||||
Col.ParseDatatype(ColQuery.Col('Type'));
|
Col.ParseDatatype(ColQuery.Col('Type'));
|
||||||
Col.Collation := ColQuery.Col('Collation');
|
Col.Collation := ColQuery.Col('Collation', True);
|
||||||
if Col.Collation.ToLowerInvariant = 'null' then
|
if Col.Collation.ToLowerInvariant = 'null' then
|
||||||
Col.Collation := '';
|
Col.Collation := '';
|
||||||
Col.AllowNull := ColQuery.Col('Null').ToLowerInvariant = 'yes';
|
Col.AllowNull := ColQuery.Col('Null').ToLowerInvariant = 'yes';
|
||||||
@ -4877,7 +4877,7 @@ begin
|
|||||||
Col.OnUpdateType := cdtExpression;
|
Col.OnUpdateType := cdtExpression;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Col.Comment := ColQuery.Col('Comment');
|
Col.Comment := ColQuery.Col('Comment', True);
|
||||||
ColQuery.Next;
|
ColQuery.Next;
|
||||||
end;
|
end;
|
||||||
ColQuery.Free;
|
ColQuery.Free;
|
||||||
|
Reference in New Issue
Block a user