|
| 1 | +SET @start_global_value = @@global.enable_xa_transaction; |
| 2 | +SELECT @start_global_value; |
| 3 | +@start_global_value |
| 4 | +1 |
| 5 | +select @@global.enable_xa_transaction; |
| 6 | +@@global.enable_xa_transaction |
| 7 | +1 |
| 8 | +select @@session.enable_xa_transaction; |
| 9 | +ERROR HY000: Variable 'enable_xa_transaction' is a GLOBAL variable |
| 10 | +show global variables like 'enable_xa_transaction'; |
| 11 | +Variable_name Value |
| 12 | +enable_xa_transaction ON |
| 13 | +show session variables like 'enable_xa_transaction'; |
| 14 | +Variable_name Value |
| 15 | +enable_xa_transaction ON |
| 16 | +select * from performance_schema.global_variables where variable_name='enable_xa_transaction'; |
| 17 | +VARIABLE_NAME VARIABLE_VALUE |
| 18 | +enable_xa_transaction ON |
| 19 | +select * from performance_schema.session_variables where variable_name='enable_xa_transaction'; |
| 20 | +VARIABLE_NAME VARIABLE_VALUE |
| 21 | +enable_xa_transaction ON |
| 22 | +set global enable_xa_transaction=0; |
| 23 | +select @@global.enable_xa_transaction; |
| 24 | +@@global.enable_xa_transaction |
| 25 | +0 |
| 26 | +select * from performance_schema.global_variables where variable_name='enable_xa_transaction'; |
| 27 | +VARIABLE_NAME VARIABLE_VALUE |
| 28 | +enable_xa_transaction OFF |
| 29 | +select * from performance_schema.session_variables where variable_name='enable_xa_transaction'; |
| 30 | +VARIABLE_NAME VARIABLE_VALUE |
| 31 | +enable_xa_transaction OFF |
| 32 | +set @@global.enable_xa_transaction=TRUE; |
| 33 | +select @@global.enable_xa_transaction; |
| 34 | +@@global.enable_xa_transaction |
| 35 | +1 |
| 36 | +select * from performance_schema.global_variables where variable_name='enable_xa_transaction'; |
| 37 | +VARIABLE_NAME VARIABLE_VALUE |
| 38 | +enable_xa_transaction ON |
| 39 | +select * from performance_schema.session_variables where variable_name='enable_xa_transaction'; |
| 40 | +VARIABLE_NAME VARIABLE_VALUE |
| 41 | +enable_xa_transaction ON |
| 42 | +set global enable_xa_transaction=0; |
| 43 | +select @@global.enable_xa_transaction; |
| 44 | +@@global.enable_xa_transaction |
| 45 | +0 |
| 46 | +select * from performance_schema.global_variables where variable_name='enable_xa_transaction'; |
| 47 | +VARIABLE_NAME VARIABLE_VALUE |
| 48 | +enable_xa_transaction OFF |
| 49 | +select * from performance_schema.session_variables where variable_name='enable_xa_transaction'; |
| 50 | +VARIABLE_NAME VARIABLE_VALUE |
| 51 | +enable_xa_transaction OFF |
| 52 | +set @@global.enable_xa_transaction=DEFAULT; |
| 53 | +select @@global.enable_xa_transaction; |
| 54 | +@@global.enable_xa_transaction |
| 55 | +1 |
| 56 | +select * from performance_schema.global_variables where variable_name='enable_xa_transaction'; |
| 57 | +VARIABLE_NAME VARIABLE_VALUE |
| 58 | +enable_xa_transaction ON |
| 59 | +select * from performance_schema.session_variables where variable_name='enable_xa_transaction'; |
| 60 | +VARIABLE_NAME VARIABLE_VALUE |
| 61 | +enable_xa_transaction ON |
| 62 | +set global enable_xa_transaction='OFF'; |
| 63 | +select @@global.enable_xa_transaction; |
| 64 | +@@global.enable_xa_transaction |
| 65 | +0 |
| 66 | +select * from performance_schema.global_variables where variable_name='enable_xa_transaction'; |
| 67 | +VARIABLE_NAME VARIABLE_VALUE |
| 68 | +enable_xa_transaction OFF |
| 69 | +select * from performance_schema.session_variables where variable_name='enable_xa_transaction'; |
| 70 | +VARIABLE_NAME VARIABLE_VALUE |
| 71 | +enable_xa_transaction OFF |
| 72 | +set global enable_xa_transaction='ON'; |
| 73 | +select @@global.enable_xa_transaction; |
| 74 | +@@global.enable_xa_transaction |
| 75 | +1 |
| 76 | +select * from performance_schema.global_variables where variable_name='enable_xa_transaction'; |
| 77 | +VARIABLE_NAME VARIABLE_VALUE |
| 78 | +enable_xa_transaction ON |
| 79 | +select * from performance_schema.session_variables where variable_name='enable_xa_transaction'; |
| 80 | +VARIABLE_NAME VARIABLE_VALUE |
| 81 | +enable_xa_transaction ON |
| 82 | +set session enable_xa_transaction=0; |
| 83 | +ERROR HY000: Variable 'enable_xa_transaction' is a GLOBAL variable and should be set with SET GLOBAL |
| 84 | +set @@session.enable_xa_transaction=1; |
| 85 | +ERROR HY000: Variable 'enable_xa_transaction' is a GLOBAL variable and should be set with SET GLOBAL |
| 86 | +set global enable_xa_transaction=1.1; |
| 87 | +ERROR 42000: Incorrect argument type to variable 'enable_xa_transaction' |
| 88 | +set global enable_xa_transaction=1e1; |
| 89 | +ERROR 42000: Incorrect argument type to variable 'enable_xa_transaction' |
| 90 | +set global enable_xa_transaction=3; |
| 91 | +ERROR 42000: Variable 'enable_xa_transaction' can't be set to the value of '3' |
| 92 | +select @@global.enable_xa_transaction; |
| 93 | +@@global.enable_xa_transaction |
| 94 | +1 |
| 95 | +set global enable_xa_transaction=-3; |
| 96 | +ERROR 42000: Variable 'enable_xa_transaction' can't be set to the value of '-3' |
| 97 | +select @@global.enable_xa_transaction; |
| 98 | +@@global.enable_xa_transaction |
| 99 | +1 |
| 100 | +set global enable_xa_transaction='AUTO'; |
| 101 | +ERROR 42000: Variable 'enable_xa_transaction' can't be set to the value of 'AUTO' |
| 102 | +SET @@global.enable_xa_transaction = @start_global_value; |
| 103 | +SELECT @@global.enable_xa_transaction; |
| 104 | +@@global.enable_xa_transaction |
| 105 | +1 |
0 commit comments