From 9a0b80c968f01d50423126ecfd5fd5e793f5d42a Mon Sep 17 00:00:00 2001 From: Nirbhay Choubey Date: Mon, 23 Jun 2014 19:14:28 -0400 Subject: [PATCH] MDEV#5747: wsrep system variables not listed alphabetically Some wsrep system variables contain uppercase letters in their names, as a result of which they seemed out of order after sorting. Fixed by using case-insensitive string comparison function to perform sorting. --- sql/set_var.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sql/set_var.cc b/sql/set_var.cc index ea577bbfa74..d1121741821 100644 --- a/sql/set_var.cc +++ b/sql/set_var.cc @@ -556,7 +556,11 @@ int mysql_del_sys_var_chain(sys_var *first) static int show_cmp(SHOW_VAR *a, SHOW_VAR *b) { +#ifdef WITH_WSREP + return my_strcasecmp(system_charset_info, a->name, b->name); +#else return strcmp(a->name, b->name); +#endif /* WITH_WSREP */ }