mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-14 01:56:36 +08:00
Bugfix: Switch to database selected in db tree before firing user query.
This commit is contained in:
@ -2772,6 +2772,10 @@ begin
|
||||
Exit;
|
||||
end;
|
||||
|
||||
// In case user selected a different database in the tree,
|
||||
// make sure that we activate it before firing any queries.
|
||||
EnsureActiveDatabase;
|
||||
|
||||
// Let EnsureActiveDatabase know that we're firing user queries.
|
||||
prevDb := ActualDatabase;
|
||||
ActualDatabase := EmptyStr;
|
||||
|
Reference in New Issue
Block a user