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.
This commit is contained in:
Markus Mäkelä 2020-12-11 18:35:39 +02:00
parent 43068d20b4
commit d869dd358e
No known key found for this signature in database
GPG Key ID: 5CE746D557ACC499

View File

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