SET @session_start_value = @@session.innodb_support_xa; SELECT @session_start_value; @session_start_value 1 SET @global_start_value = @@global.innodb_support_xa; SELECT @global_start_value; @global_start_value 1 '#--------------------FN_DYNVARS_046_01------------------------#' SET @@session.innodb_support_xa = 0; SET @@session.innodb_support_xa = DEFAULT; SELECT @@session.innodb_support_xa; @@session.innodb_support_xa 1 SET @@global.innodb_support_xa = 0; SET @@global.innodb_support_xa = DEFAULT; SELECT @@global.innodb_support_xa; @@global.innodb_support_xa 1 '#---------------------FN_DYNVARS_046_02-------------------------#' SET innodb_support_xa = 1; SELECT @@innodb_support_xa; @@innodb_support_xa 1 SELECT session.innodb_support_xa; ERROR 42S02: Unknown table 'session' in field list SELECT local.innodb_support_xa; ERROR 42S02: Unknown table 'local' in field list SELECT global.innodb_support_xa; ERROR 42S02: Unknown table 'global' in field list SET session innodb_support_xa = 0; SELECT @@session.innodb_support_xa; @@session.innodb_support_xa 0 SET global innodb_support_xa = 0; SELECT @@global.innodb_support_xa; @@global.innodb_support_xa 0 '#--------------------FN_DYNVARS_046_03------------------------#' SET @@session.innodb_support_xa = 0; SELECT @@session.innodb_support_xa; @@session.innodb_support_xa 0 SET @@session.innodb_support_xa = 1; SELECT @@session.innodb_support_xa; @@session.innodb_support_xa 1 SET @@global.innodb_support_xa = 0; SELECT @@global.innodb_support_xa; @@global.innodb_support_xa 0 SET @@global.innodb_support_xa = 1; SELECT @@global.innodb_support_xa; @@global.innodb_support_xa 1 '#--------------------FN_DYNVARS_046_04-------------------------#' SET @@session.innodb_support_xa = -0.6; ERROR 42000: Variable 'support_xa' can't be set to the value of '-0.6' SET @@session.innodb_support_xa = 1.6; ERROR 42000: Variable 'support_xa' can't be set to the value of '1.6' SET @@session.innodb_support_xa = "T"; ERROR 42000: Variable 'support_xa' can't be set to the value of 'T' SET @@session.innodb_support_xa = "Y"; ERROR 42000: Variable 'support_xa' can't be set to the value of 'Y' SET @@session.innodb_support_xa = TRÜE; ERROR 42000: Variable 'support_xa' can't be set to the value of 'TRÃœE' SET @@session.innodb_support_xa = ÕN; ERROR 42000: Variable 'support_xa' can't be set to the value of 'ÕN' SET @@session.innodb_support_xa = OF; SELECT @@session.innodb_support_xa; @@session.innodb_support_xa 0 'Bug# 34828: OF is taken as OFF and a value of 0 is set.' SET @@session.innodb_support_xa = ÓFF; ERROR 42000: Variable 'support_xa' can't be set to the value of 'ÓFF' SET @@global.innodb_support_xa = -1; SELECT @@global.innodb_support_xa; @@global.innodb_support_xa 1 SET @@global.innodb_support_xa = 2; ERROR 42000: Variable 'support_xa' can't be set to the value of '2' SET @@global.innodb_support_xa = "T"; ERROR 42000: Variable 'support_xa' can't be set to the value of 'T' SET @@global.innodb_support_xa = "Y"; ERROR 42000: Variable 'support_xa' can't be set to the value of 'Y' SET @@global.innodb_support_xa = TRÜE; ERROR 42000: Variable 'support_xa' can't be set to the value of 'TRÃœE' SET @@global.innodb_support_xa = ÕN; ERROR 42000: Variable 'support_xa' can't be set to the value of 'ÕN' SET @@global.innodb_support_xa = OF; SELECT @@global.innodb_support_xa; @@global.innodb_support_xa 0 'Bug# 34828 : OF is taken as OFF and a value of 0 is set.' SET @@global.innodb_support_xa = ÓFF; ERROR 42000: Variable 'support_xa' can't be set to the value of 'ÓFF' '#-------------------FN_DYNVARS_046_05----------------------------#' SET @@global.innodb_support_xa = 0; SET @@session.innodb_support_xa = 1; SELECT @@global.innodb_support_xa AS res_is_0; res_is_0 0 SET @@global.innodb_support_xa = 0; SELECT @@session.innodb_support_xa AS res_is_1; res_is_1 1 '#----------------------FN_DYNVARS_046_06------------------------#' SELECT @@global.innodb_support_xa = VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='innodb_support_xa'; @@global.innodb_support_xa = VARIABLE_VALUE 1 SELECT @@global.innodb_support_xa; @@global.innodb_support_xa 0 SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='innodb_support_xa'; VARIABLE_VALUE OFF '#----------------------FN_DYNVARS_046_07------------------------#' SELECT @@session.innodb_support_xa = VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='innodb_support_xa'; @@session.innodb_support_xa = VARIABLE_VALUE 0 SELECT @@session.innodb_support_xa; @@session.innodb_support_xa 1 SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='innodb_support_xa'; VARIABLE_VALUE ON '#---------------------FN_DYNVARS_046_08-------------------------#' SET @@session.innodb_support_xa = OFF; SELECT @@session.innodb_support_xa; @@session.innodb_support_xa 0 SET @@session.innodb_support_xa = ON; SELECT @@session.innodb_support_xa; @@session.innodb_support_xa 1 SET @@global.innodb_support_xa = OFF; SELECT @@global.innodb_support_xa; @@global.innodb_support_xa 0 SET @@global.innodb_support_xa = ON; SELECT @@global.innodb_support_xa; @@global.innodb_support_xa 1 '#---------------------FN_DYNVARS_046_09----------------------#' SET @@session.innodb_support_xa = TRUE; SELECT @@session.innodb_support_xa; @@session.innodb_support_xa 1 SET @@session.innodb_support_xa = FALSE; SELECT @@session.innodb_support_xa; @@session.innodb_support_xa 0 SET @@global.innodb_support_xa = TRUE; SELECT @@global.innodb_support_xa; @@global.innodb_support_xa 1 SET @@global.innodb_support_xa = FALSE; SELECT @@global.innodb_support_xa; @@global.innodb_support_xa 0 SET @@session.innodb_support_xa = @session_start_value; SELECT @@session.innodb_support_xa; @@session.innodb_support_xa 1 SET @@global.innodb_support_xa = @global_start_value; SELECT @@global.innodb_support_xa; @@global.innodb_support_xa 1