diff --git a/gui/backend/gui_plugin/core/dbms/DbMySQLSessionSetupTasks.py b/gui/backend/gui_plugin/core/dbms/DbMySQLSessionSetupTasks.py index 81ab28be..2ae88c88 100644 --- a/gui/backend/gui_plugin/core/dbms/DbMySQLSessionSetupTasks.py +++ b/gui/backend/gui_plugin/core/dbms/DbMySQLSessionSetupTasks.py @@ -93,9 +93,9 @@ def on_connected(self): result = self.execute(""" SELECT ROUTINE_NAME FROM information_schema.routines - WHERE ROUTINE_SCHEMA="sys" - AND ROUTINE_NAME="mle_explain_error" - AND ROUTINE_TYPE="PROCEDURE" + WHERE ROUTINE_SCHEMA='sys' + AND ROUTINE_NAME='mle_explain_error' + AND ROUTINE_TYPE='PROCEDURE' """).fetch_all() self.define_data(common.MySQLData.HAS_EXPLAIN_ERROR, len(result) > 0) diff --git a/gui/backend/gui_plugin/core/dbms/DbSession.py b/gui/backend/gui_plugin/core/dbms/DbSession.py index 376cec75..a972a41f 100644 --- a/gui/backend/gui_plugin/core/dbms/DbSession.py +++ b/gui/backend/gui_plugin/core/dbms/DbSession.py @@ -251,7 +251,7 @@ def terminate_thread(self): self._close_database(True) if self.thread_error is not None: logger.error(f"Thread {self._id} exiting with code {self.thread_error}") - self._message_callback("ERROR", self.thread_error) + self._message_callback("ERROR", self.thread_error, None) self._term_complete.set() def execute_thread(self, sql, params, options=None):