Commit 9cd71f5c authored by unknown's avatar unknown

Fix not_embedded_server to check if the value of com_select changed

regardless of it's current value  

parent f84ba1b5
...@@ -4,9 +4,4 @@ ID USER HOST DB COMMAND TIME STATE INFO ...@@ -4,9 +4,4 @@ ID USER HOST DB COMMAND TIME STATE INFO
number root localhost test Query time executing SELECT * FROM INFORMATION_SCHEMA.PROCESSLIST WHERE COMMAND!='Daemon' number root localhost test Query time executing SELECT * FROM INFORMATION_SCHEMA.PROCESSLIST WHERE COMMAND!='Daemon'
deallocate prepare stmt1; deallocate prepare stmt1;
FLUSH STATUS; FLUSH STATUS;
SHOW GLOBAL STATUS LIKE 'com_select'; Value of com_select did not change
Variable_name Value
Com_select 102
SHOW GLOBAL STATUS LIKE 'com_select';
Variable_name Value
Com_select 102
...@@ -48,10 +48,16 @@ while ($i) ...@@ -48,10 +48,16 @@ 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;
# 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