Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
a1705b76
Commit
a1705b76
authored
Oct 11, 2013
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update tests: log_slow_verbosity now supports query_plan=explan.
parent
094f70fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
3 deletions
+41
-3
mysql-test/suite/sys_vars/r/log_slow_verbosity_basic.result
mysql-test/suite/sys_vars/r/log_slow_verbosity_basic.result
+26
-2
mysql-test/suite/sys_vars/t/log_slow_verbosity_basic.test
mysql-test/suite/sys_vars/t/log_slow_verbosity_basic.test
+15
-1
No files found.
mysql-test/suite/sys_vars/r/log_slow_verbosity_basic.result
View file @
a1705b76
...
...
@@ -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;
mysql-test/suite/sys_vars/t/log_slow_verbosity_basic.test
View file @
a1705b76
...
...
@@ -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
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment