mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
fixed bad merge of 5.1-main -> 5.1-bugteam
This commit is contained in:
@@ -47,7 +47,7 @@ NULL
|
|||||||
FLUSH STATUS;
|
FLUSH STATUS;
|
||||||
SHOW GLOBAL STATUS LIKE 'com_select';
|
SHOW GLOBAL STATUS LIKE 'com_select';
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
Com_select 112
|
Com_select 117
|
||||||
SHOW GLOBAL STATUS LIKE 'com_select';
|
SHOW GLOBAL STATUS LIKE 'com_select';
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
Com_select 112
|
Com_select 117
|
||||||
|
@@ -0,0 +1,2 @@
|
|||||||
|
FLUSH STATUS;
|
||||||
|
Value of com_select did not change
|
||||||
|
@@ -32,4 +32,44 @@
|
|||||||
#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
|
||||||
|
Reference in New Issue
Block a user