Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add tokudb_support_xa variable test suite #7

Open
wants to merge 2 commits into
base: 5.5.30
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
174 changes: 174 additions & 0 deletions mysql-test/suite/sys_vars/r/tokudb_support_xa_basic.result
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
SET @session_start_value = @@session.tokudb_support_xa;
SELECT @session_start_value;
@session_start_value
1
SET @global_start_value = @@global.tokudb_support_xa;
SELECT @global_start_value;
@global_start_value
1
'#--------------------FN_DYNVARS_046_01------------------------#'
SET @@session.tokudb_support_xa = 0;
SET @@session.tokudb_support_xa = DEFAULT;
SELECT @@session.tokudb_support_xa;
@@session.tokudb_support_xa
1
SET @@global.tokudb_support_xa = 0;
SET @@global.tokudb_support_xa = DEFAULT;
SELECT @@global.tokudb_support_xa;
@@global.tokudb_support_xa
1
'#---------------------FN_DYNVARS_046_02-------------------------#'
SET tokudb_support_xa = 1;
SELECT @@tokudb_support_xa;
@@tokudb_support_xa
1
SELECT session.tokudb_support_xa;
ERROR 42S02: Unknown table 'session' in field list
SELECT local.tokudb_support_xa;
ERROR 42S02: Unknown table 'local' in field list
SELECT global.tokudb_support_xa;
ERROR 42S02: Unknown table 'global' in field list
SET session tokudb_support_xa = 0;
SELECT @@session.tokudb_support_xa;
@@session.tokudb_support_xa
0
SET global tokudb_support_xa = 0;
SELECT @@global.tokudb_support_xa;
@@global.tokudb_support_xa
0
'#--------------------FN_DYNVARS_046_03------------------------#'
SET @@session.tokudb_support_xa = 0;
SELECT @@session.tokudb_support_xa;
@@session.tokudb_support_xa
0
SET @@session.tokudb_support_xa = 1;
SELECT @@session.tokudb_support_xa;
@@session.tokudb_support_xa
1
SET @@global.tokudb_support_xa = 0;
SELECT @@global.tokudb_support_xa;
@@global.tokudb_support_xa
0
SET @@global.tokudb_support_xa = 1;
SELECT @@global.tokudb_support_xa;
@@global.tokudb_support_xa
1
'#--------------------FN_DYNVARS_046_04-------------------------#'
SET @@session.tokudb_support_xa = -0.6;
ERROR 42000: Incorrect argument type to variable 'tokudb_support_xa'
SET @@session.tokudb_support_xa = 1.6;
ERROR 42000: Incorrect argument type to variable 'tokudb_support_xa'
SET @@session.tokudb_support_xa = "T";
ERROR 42000: Variable 'tokudb_support_xa' can't be set to the value of 'T'
SET @@session.tokudb_support_xa = "Y";
ERROR 42000: Variable 'tokudb_support_xa' can't be set to the value of 'Y'
SET @@session.tokudb_support_xa = TR�E;
ERROR 42000: Variable 'tokudb_support_xa' can't be set to the value of 'TR�E'
SET @@session.tokudb_support_xa = �N;
ERROR 42000: Variable 'tokudb_support_xa' can't be set to the value of '�N'
SET @@session.tokudb_support_xa = OF;
SELECT @@session.tokudb_support_xa;
@@session.tokudb_support_xa
0
SET @@session.tokudb_support_xa = �FF;
ERROR 42000: Variable 'tokudb_support_xa' can't be set to the value of '�FF'
SET @@global.tokudb_support_xa = -1;
SELECT @@global.tokudb_support_xa;
@@global.tokudb_support_xa
1
SET @@global.tokudb_support_xa = 2;
ERROR 42000: Variable 'tokudb_support_xa' can't be set to the value of '2'
SET @@global.tokudb_support_xa = "T";
ERROR 42000: Variable 'tokudb_support_xa' can't be set to the value of 'T'
SET @@global.tokudb_support_xa = "Y";
ERROR 42000: Variable 'tokudb_support_xa' can't be set to the value of 'Y'
SET @@global.tokudb_support_xa = TR�E;
ERROR 42000: Variable 'tokudb_support_xa' can't be set to the value of 'TR�E'
SET @@global.tokudb_support_xa = �N;
ERROR 42000: Variable 'tokudb_support_xa' can't be set to the value of '�N'
SET @@global.tokudb_support_xa = OF;
SELECT @@global.tokudb_support_xa;
@@global.tokudb_support_xa
0
SET @@global.tokudb_support_xa = �FF;
ERROR 42000: Variable 'tokudb_support_xa' can't be set to the value of '�FF'
'#-------------------FN_DYNVARS_046_05----------------------------#'
SET @@global.tokudb_support_xa = 0;
SET @@session.tokudb_support_xa = 1;
SELECT @@global.tokudb_support_xa AS res_is_0;
res_is_0
0
SET @@global.tokudb_support_xa = 0;
SELECT @@session.tokudb_support_xa AS res_is_1;
res_is_1
1
'#----------------------FN_DYNVARS_046_06------------------------#'
SELECT IF(@@global.tokudb_support_xa, "ON", "OFF") =
VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='tokudb_support_xa';
IF(@@global.tokudb_support_xa, "ON", "OFF") =
VARIABLE_VALUE
1
SELECT @@global.tokudb_support_xa;
@@global.tokudb_support_xa
0
SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='tokudb_support_xa';
VARIABLE_VALUE
OFF
'#----------------------FN_DYNVARS_046_07------------------------#'
SELECT IF(@@session.tokudb_support_xa, "ON", "OFF") =
VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES
WHERE VARIABLE_NAME='tokudb_support_xa';
IF(@@session.tokudb_support_xa, "ON", "OFF") =
VARIABLE_VALUE
1
SELECT @@session.tokudb_support_xa;
@@session.tokudb_support_xa
1
SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES
WHERE VARIABLE_NAME='tokudb_support_xa';
VARIABLE_VALUE
ON
'#---------------------FN_DYNVARS_046_08-------------------------#'
SET @@session.tokudb_support_xa = OFF;
SELECT @@session.tokudb_support_xa;
@@session.tokudb_support_xa
0
SET @@session.tokudb_support_xa = ON;
SELECT @@session.tokudb_support_xa;
@@session.tokudb_support_xa
1
SET @@global.tokudb_support_xa = OFF;
SELECT @@global.tokudb_support_xa;
@@global.tokudb_support_xa
0
SET @@global.tokudb_support_xa = ON;
SELECT @@global.tokudb_support_xa;
@@global.tokudb_support_xa
1
'#---------------------FN_DYNVARS_046_09----------------------#'
SET @@session.tokudb_support_xa = TRUE;
SELECT @@session.tokudb_support_xa;
@@session.tokudb_support_xa
1
SET @@session.tokudb_support_xa = FALSE;
SELECT @@session.tokudb_support_xa;
@@session.tokudb_support_xa
0
SET @@global.tokudb_support_xa = TRUE;
SELECT @@global.tokudb_support_xa;
@@global.tokudb_support_xa
1
SET @@global.tokudb_support_xa = FALSE;
SELECT @@global.tokudb_support_xa;
@@global.tokudb_support_xa
0
SET @@session.tokudb_support_xa = @session_start_value;
SELECT @@session.tokudb_support_xa;
@@session.tokudb_support_xa
1
SET @@global.tokudb_support_xa = @global_start_value;
SELECT @@global.tokudb_support_xa;
@@global.tokudb_support_xa
1
Loading