mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 20:00:16 +08:00
Fix bug #641 table names not colored in sql query editor
This commit is contained in:
@ -1526,6 +1526,13 @@ begin
|
|||||||
// SELECT COUNT(*), but that would potentially be rather slow.
|
// SELECT COUNT(*), but that would potentially be rather slow.
|
||||||
end;
|
end;
|
||||||
CachedTableLists.AddObject(db, ds);
|
CachedTableLists.AddObject(db, ds);
|
||||||
|
// Add table names to SQL highlighter
|
||||||
|
SynSQLSyn1.TableNames.BeginUpdate;
|
||||||
|
while not ds.Eof do begin
|
||||||
|
SynSQLSyn1.TableNames.Add(ds.Fields[0].AsWideString);
|
||||||
|
ds.Next;
|
||||||
|
end;
|
||||||
|
SynSQLSyn1.TableNames.EndUpdate;
|
||||||
finally
|
finally
|
||||||
MainForm.ShowStatus(STATUS_MSG_READY);
|
MainForm.ShowStatus(STATUS_MSG_READY);
|
||||||
Screen.Cursor := OldCursor;
|
Screen.Cursor := OldCursor;
|
||||||
|
Reference in New Issue
Block a user