mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
fix the tokudb_analyze_in_background_basic test to run on mariadb. mariadb does additional value checking for boolean system variables
This commit is contained in:
parent
110a9f0693
commit
a52a68cb7d
2 changed files with 15 additions and 11 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue