mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 20:00:16 +08:00
Fix firing queries in the wrong (= mysql) database after closing the user manager. ExecUseQuery also sets Connection.Database which is then compared with ActiveDatabase later in ExecXXQuery.
This commit is contained in:
@ -270,7 +270,7 @@ begin
|
||||
// A. Using the mysql-DB
|
||||
CWin := Mainform.Childwin;
|
||||
try
|
||||
CWin.ExecuteNonQuery('USE ' + db);
|
||||
CWin.ExecUseQuery(DBNAME_MYSQL);
|
||||
except
|
||||
MessageDlg('You have no access to the privileges database.', mtError, [mbOK], 0);
|
||||
ModalResult := mrCancel;
|
||||
|
Reference in New Issue
Block a user