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:
Ansgar Becker
2008-05-12 22:28:59 +00:00
parent 8f26db8090
commit 8ab35a23a5

View File

@ -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;