1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
|
SET @global_start_value = @@global.timed_mutexes;
SELECT @global_start_value;
@global_start_value
0
'#--------------------FN_DYNVARS_177_01------------------------#'
SET @@global.timed_mutexes = 1;
Warnings:
Warning 1287 '@@timed_mutexes' is deprecated and will be removed in a future release.
SET @@global.timed_mutexes = DEFAULT;
Warnings:
Warning 1287 '@@timed_mutexes' is deprecated and will be removed in a future release.
SELECT @@global.timed_mutexes;
@@global.timed_mutexes
0
'#---------------------FN_DYNVARS_177_02-------------------------#'
SET timed_mutexes = 1;
ERROR HY000: Variable 'timed_mutexes' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@timed_mutexes;
@@timed_mutexes
0
SELECT global.timed_mutexes;
ERROR 42S02: Unknown table 'global' in field list
SET global timed_mutexes = 1;
Warnings:
Warning 1287 '@@timed_mutexes' is deprecated and will be removed in a future release.
SELECT @@global.timed_mutexes;
@@global.timed_mutexes
1
'#--------------------FN_DYNVARS_177_03------------------------#'
SET @@global.timed_mutexes = 0;
Warnings:
Warning 1287 '@@timed_mutexes' is deprecated and will be removed in a future release.
SELECT @@global.timed_mutexes;
@@global.timed_mutexes
0
SET @@global.timed_mutexes = 1;
Warnings:
Warning 1287 '@@timed_mutexes' is deprecated and will be removed in a future release.
SELECT @@global.timed_mutexes;
@@global.timed_mutexes
1
'#--------------------FN_DYNVARS_177_04-------------------------#'
SET @@global.timed_mutexes = -1;
ERROR 42000: Variable 'timed_mutexes' can't be set to the value of '-1'
SET @@global.timed_mutexes = 2;
ERROR 42000: Variable 'timed_mutexes' can't be set to the value of '2'
SET @@global.timed_mutexes = "T";
ERROR 42000: Variable 'timed_mutexes' can't be set to the value of 'T'
SET @@global.timed_mutexes = "Y";
ERROR 42000: Variable 'timed_mutexes' can't be set to the value of 'Y'
SET @@global.timed_mutexes = _true;
ERROR 42000: Variable 'timed_mutexes' can't be set to the value of '_true'
SET @@global.timed_mutexes = 0N;
ERROR 42000: Variable 'timed_mutexes' can't be set to the value of '0N'
SET @@global.timed_mutexes = 1+1;
ERROR 42000: Variable 'timed_mutexes' can't be set to the value of '2'
SET @@global.timed_mutexes = 0FF;
ERROR 42000: Variable 'timed_mutexes' can't be set to the value of '0FF'
SET @@global.timed_mutexes = '0';
ERROR 42000: Variable 'timed_mutexes' can't be set to the value of '0'
SET @@global.timed_mutexes = N;
ERROR 42000: Variable 'timed_mutexes' can't be set to the value of 'N'
'#-------------------FN_DYNVARS_177_05----------------------------#'
SET @@session.timed_mutexes = 0;
ERROR HY000: Variable 'timed_mutexes' is a GLOBAL variable and should be set with SET GLOBAL
SET @@timed_mutexes = 0;
ERROR HY000: Variable 'timed_mutexes' is a GLOBAL variable and should be set with SET GLOBAL
SET @@local.timed_mutexes = 0;
ERROR HY000: Variable 'timed_mutexes' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@session.timed_mutexes;
ERROR HY000: Variable 'timed_mutexes' is a GLOBAL variable
SELECT @@local.timed_mutexes;
ERROR HY000: Variable 'timed_mutexes' is a GLOBAL variable
'#----------------------FN_DYNVARS_177_06------------------------#'
SELECT count(VARIABLE_VALUE) FROM INFORMATION_SCHEMA.SESSION_VARIABLES
WHERE VARIABLE_NAME='timed_mutexes';
count(VARIABLE_VALUE)
1
'#----------------------FN_DYNVARS_177_07------------------------#'
SELECT IF(@@global.timed_mutexes, "ON", "OFF") = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='timed_mutexes';
IF(@@global.timed_mutexes, "ON", "OFF") = VARIABLE_VALUE
1
SELECT @@global.timed_mutexes;
@@global.timed_mutexes
1
SELECT VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='timed_mutexes';
VARIABLE_VALUE
ON
'#---------------------FN_DYNVARS_177_08-------------------------#'
SET @@global.timed_mutexes = OFF;
Warnings:
Warning 1287 '@@timed_mutexes' is deprecated and will be removed in a future release.
SELECT @@global.timed_mutexes;
@@global.timed_mutexes
0
SET @@global.timed_mutexes = ON;
Warnings:
Warning 1287 '@@timed_mutexes' is deprecated and will be removed in a future release.
SELECT @@global.timed_mutexes;
@@global.timed_mutexes
1
'#---------------------FN_DYNVARS_177_09----------------------#'
SET @@global.timed_mutexes = TRUE;
Warnings:
Warning 1287 '@@timed_mutexes' is deprecated and will be removed in a future release.
SELECT @@global.timed_mutexes;
@@global.timed_mutexes
1
SET @@global.timed_mutexes = FALSE;
Warnings:
Warning 1287 '@@timed_mutexes' is deprecated and will be removed in a future release.
SELECT @@global.timed_mutexes;
@@global.timed_mutexes
0
SET @@global.timed_mutexes = @global_start_value;
Warnings:
Warning 1287 '@@timed_mutexes' is deprecated and will be removed in a future release.
SELECT @@global.timed_mutexes;
@@global.timed_mutexes
0
|