From d869dd358eba740da7162205e30ea09d37fd24d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Fri, 11 Dec 2020 18:35:39 +0200 Subject: [PATCH] MXS-3337: Select lowercase variable names The current code assumes that the variable names are in lowercase. This fixes the galera monitoring that was broken by commit 43068d20b43a34d5f3b4b4db0fcce701b3cd7cad. In addition, lowercase names also helps when comparisons are done with std::string. --- server/modules/monitor/galeramon/galeramon.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/monitor/galeramon/galeramon.cc b/server/modules/monitor/galeramon/galeramon.cc index 7430911ff..1e6c0cae7 100644 --- a/server/modules/monitor/galeramon/galeramon.cc +++ b/server/modules/monitor/galeramon/galeramon.cc @@ -137,7 +137,7 @@ void GaleraMonitor::update_server_status(MXS_MONITORED_SERVER* monitored_server) /* Check if the the Galera FSM shows this node is joined to the cluster */ const char* cluster_member = - " SELECT * FROM (" + " SELECT LOWER(VARIABLE_NAME), VARIABLE_VALUE FROM (" " SELECT * FROM information_schema.SESSION_STATUS" " UNION" " SELECT * FROM information_schema.SESSION_VARIABLES) AS t"