Commit 26e86758 authored by Davi Arnaut's avatar Davi Arnaut

Remove duplicated test for Bug#34517

parent 91ac2afa
...@@ -45,9 +45,4 @@ SELECT IS_USED_LOCK('bug31418'); ...@@ -45,9 +45,4 @@ SELECT IS_USED_LOCK('bug31418');
IS_USED_LOCK('bug31418') IS_USED_LOCK('bug31418')
NULL NULL
FLUSH STATUS; FLUSH STATUS;
SHOW GLOBAL STATUS LIKE 'com_select'; Value of com_select did not change
Variable_name Value
Com_select 117
SHOW GLOBAL STATUS LIKE 'com_select';
Variable_name Value
Com_select 117
FLUSH STATUS; select 1;
Value of com_select did not change 1
1
...@@ -63,8 +63,14 @@ while ($i) ...@@ -63,8 +63,14 @@ while ($i)
--enable_query_log --enable_query_log
--enable_result_log --enable_result_log
SHOW GLOBAL STATUS LIKE 'com_select'; let $before= query_get_value(SHOW GLOBAL STATUS LIKE 'com_select',Value,1);
--change_user --change_user
SHOW GLOBAL STATUS LIKE 'com_select'; 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;
...@@ -4,6 +4,11 @@ ...@@ -4,6 +4,11 @@
-- source include/not_embedded.inc -- source include/not_embedded.inc
#
# Produce output
#
select 1;
# The following fails sporadically because 'check-testcase' runs # The following fails sporadically because 'check-testcase' runs
# queries before this test and there is no way to guarantee that any # queries before this test and there is no way to guarantee that any
...@@ -31,45 +36,4 @@ ...@@ -31,45 +36,4 @@
#execute stmt1; #execute stmt1;
#deallocate prepare stmt1; #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 # End of 5.1 tests
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment