Commit a1705b76 authored by Sergey Petrunya's avatar Sergey Petrunya

Update tests: log_slow_verbosity now supports query_plan=explan.

parent 094f70fd
......@@ -37,6 +37,22 @@ set session log_slow_verbosity=3;
select @@session.log_slow_verbosity;
@@session.log_slow_verbosity
innodb,query_plan
set session log_slow_verbosity=4;
select @@session.log_slow_verbosity;
@@session.log_slow_verbosity
explain
set session log_slow_verbosity=5;
select @@session.log_slow_verbosity;
@@session.log_slow_verbosity
innodb,explain
set session log_slow_verbosity=6;
select @@session.log_slow_verbosity;
@@session.log_slow_verbosity
query_plan,explain
set session log_slow_verbosity=7;
select @@session.log_slow_verbosity;
@@session.log_slow_verbosity
innodb,query_plan,explain
set session log_slow_verbosity='innodb';
select @@session.log_slow_verbosity;
@@session.log_slow_verbosity
......@@ -49,6 +65,14 @@ set session log_slow_verbosity='innodb,query_plan';
select @@session.log_slow_verbosity;
@@session.log_slow_verbosity
innodb,query_plan
set session log_slow_verbosity='explain';
select @@session.log_slow_verbosity;
@@session.log_slow_verbosity
explain
set session log_slow_verbosity='innodb,query_plan,explain';
select @@session.log_slow_verbosity;
@@session.log_slow_verbosity
innodb,query_plan,explain
set session log_slow_verbosity='';
select @@session.log_slow_verbosity;
@@session.log_slow_verbosity
......@@ -59,6 +83,6 @@ set session log_slow_verbosity=1e1;
ERROR 42000: Incorrect argument type to variable 'log_slow_verbosity'
set session log_slow_verbosity="foo";
ERROR 42000: Variable 'log_slow_verbosity' can't be set to the value of 'foo'
set session log_slow_verbosity=4;
ERROR 42000: Variable 'log_slow_verbosity' can't be set to the value of '4'
set session log_slow_verbosity=8;
ERROR 42000: Variable 'log_slow_verbosity' can't be set to the value of '8'
SET @@global.log_slow_verbosity = @start_global_value;
......@@ -29,12 +29,26 @@ set session log_slow_verbosity=2;
select @@session.log_slow_verbosity;
set session log_slow_verbosity=3;
select @@session.log_slow_verbosity;
set session log_slow_verbosity=4;
select @@session.log_slow_verbosity;
set session log_slow_verbosity=5;
select @@session.log_slow_verbosity;
set session log_slow_verbosity=6;
select @@session.log_slow_verbosity;
set session log_slow_verbosity=7;
select @@session.log_slow_verbosity;
set session log_slow_verbosity='innodb';
select @@session.log_slow_verbosity;
set session log_slow_verbosity='query_plan';
select @@session.log_slow_verbosity;
set session log_slow_verbosity='innodb,query_plan';
select @@session.log_slow_verbosity;
set session log_slow_verbosity='explain';
select @@session.log_slow_verbosity;
set session log_slow_verbosity='innodb,query_plan,explain';
select @@session.log_slow_verbosity;
set session log_slow_verbosity='';
select @@session.log_slow_verbosity;
......@@ -48,6 +62,6 @@ set session log_slow_verbosity=1e1;
--error ER_WRONG_VALUE_FOR_VAR
set session log_slow_verbosity="foo";
--error ER_WRONG_VALUE_FOR_VAR
set session log_slow_verbosity=4;
set session log_slow_verbosity=8;
SET @@global.log_slow_verbosity = @start_global_value;
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