Issue #1250: prevent clearing highlighter's TableNames list in irrelevant events.

This commit is contained in:
Ansgar Becker
2020-12-08 19:26:47 +01:00
parent 2dc7f934f0
commit ad91f12e62

View File

@@ -9352,6 +9352,8 @@ var
TableNames, ProcNames: TStringList;
begin
// Tell SQL highlighter about names of tables and procedures in selected database
if (ActiveConnection <> Connection) or (Database <> Connection.Database) then
Exit;
SynSQLSynUsed.TableNames.Clear;
SynSQLSynUsed.ProcNames.Clear;
if Connection.DbObjectsCached(Database) then begin