Commit a52a68cb authored by Rik Prohaska's avatar Rik Prohaska Committed by Sergei Golubchik

fix the tokudb_analyze_in_background_basic test to run on mariadb. mariadb...

fix the tokudb_analyze_in_background_basic test to run on mariadb.  mariadb does additional value checking for boolean system variables
parent 110a9f06
......@@ -19,29 +19,30 @@ SELECT @@global.tokudb_analyze_in_background;
@@global.tokudb_analyze_in_background
0
SET GLOBAL tokudb_analyze_in_background = -6;
ERROR 42000: Variable 'tokudb_analyze_in_background' can't be set to the value of '-6'
SELECT @@global.tokudb_analyze_in_background;
@@global.tokudb_analyze_in_background
1
0
SET GLOBAL tokudb_analyze_in_background = 1.6;
ERROR 42000: Incorrect argument type to variable 'tokudb_analyze_in_background'
SELECT @@global.tokudb_analyze_in_background;
@@global.tokudb_analyze_in_background
1
0
SET GLOBAL tokudb_analyze_in_background = "T";
ERROR 42000: Variable 'tokudb_analyze_in_background' can't be set to the value of 'T'
SELECT @@global.tokudb_analyze_in_background;
@@global.tokudb_analyze_in_background
1
0
SET GLOBAL tokudb_analyze_in_background = "Y";
ERROR 42000: Variable 'tokudb_analyze_in_background' can't be set to the value of 'Y'
SELECT @@global.tokudb_analyze_in_background;
@@global.tokudb_analyze_in_background
1
0
SET GLOBAL tokudb_analyze_in_background = 'foobar';
ERROR 42000: Variable 'tokudb_analyze_in_background' can't be set to the value of 'foobar'
SELECT @@global.tokudb_analyze_in_background;
@@global.tokudb_analyze_in_background
1
0
SET SESSION tokudb_analyze_in_background = 0;
SELECT @@session.tokudb_analyze_in_background;
@@session.tokudb_analyze_in_background
......@@ -53,31 +54,32 @@ SELECT @@session.tokudb_analyze_in_background;
SET SESSION tokudb_analyze_in_background = DEFAULT;
SELECT @@session.tokudb_analyze_in_background;
@@session.tokudb_analyze_in_background
1
0
SET SESSION tokudb_analyze_in_background = -6;
ERROR 42000: Variable 'tokudb_analyze_in_background' can't be set to the value of '-6'
SELECT @@session.tokudb_analyze_in_background;
@@session.tokudb_analyze_in_background
1
0
SET SESSION tokudb_analyze_in_background = 1.6;
ERROR 42000: Incorrect argument type to variable 'tokudb_analyze_in_background'
SELECT @@session.tokudb_analyze_in_background;
@@session.tokudb_analyze_in_background
1
0
SET SESSION tokudb_analyze_in_background = "T";
ERROR 42000: Variable 'tokudb_analyze_in_background' can't be set to the value of 'T'
SELECT @@session.tokudb_analyze_in_background;
@@session.tokudb_analyze_in_background
1
0
SET SESSION tokudb_analyze_in_background = "Y";
ERROR 42000: Variable 'tokudb_analyze_in_background' can't be set to the value of 'Y'
SELECT @@session.tokudb_analyze_in_background;
@@session.tokudb_analyze_in_background
1
0
SET SESSION tokudb_analyze_in_background = 'foobar';
ERROR 42000: Variable 'tokudb_analyze_in_background' can't be set to the value of 'foobar'
SELECT @@session.tokudb_analyze_in_background;
@@session.tokudb_analyze_in_background
1
0
SET GLOBAL tokudb_analyze_in_background = 0;
SET SESSION tokudb_analyze_in_background = 1;
SELECT @@global.tokudb_analyze_in_background;
......
......@@ -17,6 +17,7 @@ SELECT @@global.tokudb_analyze_in_background;
SET GLOBAL tokudb_analyze_in_background = DEFAULT;
SELECT @@global.tokudb_analyze_in_background;
-- error ER_WRONG_VALUE_FOR_VAR
SET GLOBAL tokudb_analyze_in_background = -6;
SELECT @@global.tokudb_analyze_in_background;
......@@ -46,6 +47,7 @@ SELECT @@session.tokudb_analyze_in_background;
SET SESSION tokudb_analyze_in_background = DEFAULT;
SELECT @@session.tokudb_analyze_in_background;
-- error ER_WRONG_VALUE_FOR_VAR
SET SESSION tokudb_analyze_in_background = -6;
SELECT @@session.tokudb_analyze_in_background;
......
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