mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Code cosmetic - avoid calling Exit when we have the chance to jump to Except instead.
This commit is contained in:
@@ -4567,15 +4567,15 @@ var
|
||||
tablename := dbname + '.' + tablename;
|
||||
try
|
||||
Columns := ActiveConnection.GetResults('SHOW COLUMNS FROM '+tablename);
|
||||
while not Columns.Eof do begin
|
||||
Proposal.InsertList.Add(Columns.Col('Field'));
|
||||
Proposal.ItemList.Add(Format(SYNCOMPLETION_PATTERN, [ICONINDEX_FIELD, GetFirstWord(Columns.Col('Type')), Columns.Col('Field')]) );
|
||||
Columns.Next;
|
||||
end;
|
||||
FreeAndNil(Columns);
|
||||
except
|
||||
Exit;
|
||||
on E:EDatabaseError do;
|
||||
end;
|
||||
while not Columns.Eof do begin
|
||||
Proposal.InsertList.Add(Columns.Col('Field'));
|
||||
Proposal.ItemList.Add(Format(SYNCOMPLETION_PATTERN, [ICONINDEX_FIELD, GetFirstWord(Columns.Col('Type')), Columns.Col('Field')]) );
|
||||
Columns.Next;
|
||||
end;
|
||||
FreeAndNil(Columns);
|
||||
end;
|
||||
|
||||
begin
|
||||
|
||||
Reference in New Issue
Block a user