So after I published my patch last night, another of my
colleagues - the esteemed Shane Bester - pointed out that there
is a related bug - Bug#28405 - which requests that Com_change_user is
also split out from Com_admin_commands.
So I extended my patch this morning, to kill two birds with one
stone:
=== modified file 'sql/mysqld.cc'
--- sql/mysqld.cc revid:alik@sun.com-20100114090008-3rsdmlp1w2mqgrhg
+++ sql/mysqld.cc 2010-03-03 09:57:40 +0000
@@ -3131,6 +3131,7 @@
{"call_procedure", (char*) offsetof(STATUS_VAR, com_stat[(uint) SQLCOM_CALL]), SHOW_LONG_STATUS},
{"change_db", (char*) offsetof(STATUS_VAR, com_stat[(uint) SQLCOM_CHANGE_DB]), SHOW_LONG_STATUS},
{"change_master", (char*) offsetof(STATUS_VAR, com_stat[(uint) SQLCOM_CHANGE_MASTER]), SHOW_LONG_STATUS},
+ {"change_user", (char*) offsetof(STATUS_VAR, com_change_user), …
[Read more]