summaryrefslogtreecommitdiff
path: root/mysql-test/t/not_embedded_server.test
diff options
context:
space:
mode:
authorGeorgi Kodinov <joro@sun.com>2009-01-31 14:15:49 +0200
committerGeorgi Kodinov <joro@sun.com>2009-01-31 14:15:49 +0200
commit880a4583a64cc64f428543bd8f6c026748660d67 (patch)
tree950525d8b70bb34085ea78f1990f7e7cc1804ca9 /mysql-test/t/not_embedded_server.test
parentaee3cb63155b6f863313d5cc8903d9c4ea62f449 (diff)
downloadmariadb-git-880a4583a64cc64f428543bd8f6c026748660d67.tar.gz
fixed bad merge of 5.1-main -> 5.1-bugteam
Diffstat (limited to 'mysql-test/t/not_embedded_server.test')
-rw-r--r--mysql-test/t/not_embedded_server.test40
1 files changed, 40 insertions, 0 deletions
diff --git a/mysql-test/t/not_embedded_server.test b/mysql-test/t/not_embedded_server.test
index 4c7bbbda877..562194a62a4 100644
--- a/mysql-test/t/not_embedded_server.test
+++ b/mysql-test/t/not_embedded_server.test
@@ -32,4 +32,44 @@
#deallocate prepare stmt1;
+
+#
+# Bug#31222: com_% global status counters behave randomly with
+# mysql_change_user.
+#
+# Moved from change_user.test due to Bug#34517: SHOW GLOBAL STATUS does not
+# work properly in embedded server.
+#
+# TODO: move it back when Bug#34517 is fixed.
+#
+
+FLUSH STATUS;
+
+--disable_result_log
+--disable_query_log
+
+let $i = 100;
+
+while ($i)
+{
+ dec $i;
+
+ SELECT 1;
+}
+
+--enable_query_log
+--enable_result_log
+
+let $before= query_get_value(SHOW GLOBAL STATUS LIKE 'com_select',Value,1);
+
+--change_user
+
+let $after= query_get_value(SHOW GLOBAL STATUS LIKE 'com_select',Value,1);
+
+if (`select $after != $before`){
+ SHOW GLOBAL STATUS LIKE 'com_select';
+ die The value of com_select changed during change_user;
+}
+echo Value of com_select did not change;
+
# End of 5.1 tests