Fix bug #641 table names not colored in sql query editor

This commit is contained in:
Ansgar Becker
2008-08-09 08:55:30 +00:00
parent 7198f0b5ab
commit 026ffd58a2

View File

@ -1526,6 +1526,13 @@ begin
// SELECT COUNT(*), but that would potentially be rather slow.
end;
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
MainForm.ShowStatus(STATUS_MSG_READY);
Screen.Cursor := OldCursor;