From 8ab35a23a52a97b32586bf0debba03015df81797 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Mon, 12 May 2008 22:28:59 +0000 Subject: [PATCH] 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. --- source/usermanager.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/usermanager.pas b/source/usermanager.pas index 1bf540b8..1c5a58c2 100644 --- a/source/usermanager.pas +++ b/source/usermanager.pas @@ -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;