summaryrefslogtreecommitdiff
path: root/mysql-test/t/change_user.test
diff options
context:
space:
mode:
authorAlexander Nozdrin <alik@sun.com>2009-01-15 12:56:05 +0300
committerAlexander Nozdrin <alik@sun.com>2009-01-15 12:56:05 +0300
commit91e5423c642c23ba393f005c844c6ee37093e1a8 (patch)
tree539c3cbee468ec51bd1dc6ab059bc1493e99098d /mysql-test/t/change_user.test
parent920021c9b8bed481238f6879543a9afe9fc9ecc9 (diff)
parent9a6e05d8b9908b3b0b5bca849f5af66e7c832e7c (diff)
downloadmariadb-git-91e5423c642c23ba393f005c844c6ee37093e1a8.tar.gz
Merge backport of patch for Bug#31222 from 5.0 to 5.1
Diffstat (limited to 'mysql-test/t/change_user.test')
-rw-r--r--mysql-test/t/change_user.test29
1 files changed, 23 insertions, 6 deletions
diff --git a/mysql-test/t/change_user.test b/mysql-test/t/change_user.test
index f200c76196c..47e503a9afd 100644
--- a/mysql-test/t/change_user.test
+++ b/mysql-test/t/change_user.test
@@ -45,9 +45,26 @@ SELECT IS_USED_LOCK('bug31418');
# Bug#31222: com_% global status counters behave randomly with
# mysql_change_user.
#
-# Moved to not_embedded_server.test due to Bug#34517: SHOW GLOBAL STATUS does
-# not work properly in embedded server.
-#
-# TODO: move it back when Bug#34517 is fixed (don't forget to add
-# --force-restart into change_user-master.opt).
-#
+
+FLUSH STATUS;
+
+--disable_result_log
+--disable_query_log
+
+let $i = 100;
+
+while ($i)
+{
+ dec $i;
+
+ SELECT 1;
+}
+
+--enable_query_log
+--enable_result_log
+
+SHOW GLOBAL STATUS LIKE 'com_select';
+
+--change_user
+
+SHOW GLOBAL STATUS LIKE 'com_select';