mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-14 18:12:05 +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;
|
Exit;
|
||||||
end;
|
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.
|
// Let EnsureActiveDatabase know that we're firing user queries.
|
||||||
prevDb := ActualDatabase;
|
prevDb := ActualDatabase;
|
||||||
ActualDatabase := EmptyStr;
|
ActualDatabase := EmptyStr;
|
||||||
|
Reference in New Issue
Block a user