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
|
SET @global_start_value = @@global.slave_allow_batching;
SELECT @global_start_value;
@global_start_value
0
'#--------------------FN_DYNVARS_145_01------------------------#'
SET @@global.slave_allow_batching = 1;
SET @@global.slave_allow_batching = DEFAULT;
SELECT @@global.slave_allow_batching;
@@global.slave_allow_batching
0
'#---------------------FN_DYNVARS_145_02-------------------------#'
SET slave_allow_batching = 1;
ERROR HY000: Variable 'slave_allow_batching' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@slave_allow_batching;
@@slave_allow_batching
0
SELECT global.slave_allow_batching;
ERROR 42S02: Unknown table 'global' in field list
SET global slave_allow_batching = 1;
SELECT @@global.slave_allow_batching;
@@global.slave_allow_batching
1
'#--------------------FN_DYNVARS_145_03------------------------#'
SET @@global.slave_allow_batching = 0;
SELECT @@global.slave_allow_batching;
@@global.slave_allow_batching
0
SET @@global.slave_allow_batching = 1;
SELECT @@global.slave_allow_batching;
@@global.slave_allow_batching
1
'#--------------------FN_DYNVARS_145_04-------------------------#'
SET @@global.slave_allow_batching = -1;
ERROR 42000: Variable 'slave_allow_batching' can't be set to the value of '-1'
SET @@global.slave_allow_batching = 2;
ERROR 42000: Variable 'slave_allow_batching' can't be set to the value of '2'
SET @@global.slave_allow_batching = "T";
ERROR 42000: Variable 'slave_allow_batching' can't be set to the value of 'T'
SET @@global.slave_allow_batching = "Y";
ERROR 42000: Variable 'slave_allow_batching' can't be set to the value of 'Y'
SET @@global.slave_allow_batching = YES;
ERROR 42000: Variable 'slave_allow_batching' can't be set to the value of 'YES'
SET @@global.slave_allow_batching = ONN;
ERROR 42000: Variable 'slave_allow_batching' can't be set to the value of 'ONN'
SET @@global.slave_allow_batching = OOF;
ERROR 42000: Variable 'slave_allow_batching' can't be set to the value of 'OOF'
SET @@global.slave_allow_batching = 0FF;
ERROR 42000: Variable 'slave_allow_batching' can't be set to the value of '0FF'
SET @@global.slave_allow_batching = ' 1';
ERROR 42000: Variable 'slave_allow_batching' can't be set to the value of ' 1'
SET @@global.slave_allow_batching = NO;
ERROR 42000: Variable 'slave_allow_batching' can't be set to the value of 'NO'
'#-------------------FN_DYNVARS_145_05----------------------------#'
SET @@session.slave_allow_batching = 0;
ERROR HY000: Variable 'slave_allow_batching' is a GLOBAL variable and should be set with SET GLOBAL
SET @@slave_allow_batching = 0;
ERROR HY000: Variable 'slave_allow_batching' is a GLOBAL variable and should be set with SET GLOBAL
SET @@local.slave_allow_batching = 0;
ERROR HY000: Variable 'slave_allow_batching' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@session.slave_allow_batching;
ERROR HY000: Variable 'slave_allow_batching' is a GLOBAL variable
SELECT @@local.slave_allow_batching;
ERROR HY000: Variable 'slave_allow_batching' is a GLOBAL variable
'#----------------------FN_DYNVARS_145_06------------------------#'
SELECT count(VARIABLE_VALUE) FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='slave_allow_batching';
count(VARIABLE_VALUE)
1
'#----------------------FN_DYNVARS_145_07------------------------#'
SELECT @@global.slave_allow_batching = VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='slave_allow_batching';
@@global.slave_allow_batching = VARIABLE_VALUE
0
Warnings:
Warning 1292 Truncated incorrect DOUBLE value: 'ON'
SELECT @@global.slave_allow_batching;
@@global.slave_allow_batching
1
SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='slave_allow_batching';
VARIABLE_VALUE
ON
'#---------------------FN_DYNVARS_145_08-------------------------#'
SET @@global.slave_allow_batching = OFF;
SELECT @@global.slave_allow_batching;
@@global.slave_allow_batching
0
SET @@global.slave_allow_batching = ON;
SELECT @@global.slave_allow_batching;
@@global.slave_allow_batching
1
'#---------------------FN_DYNVARS_145_09----------------------#'
SET @@global.slave_allow_batching = TRUE;
SELECT @@global.slave_allow_batching;
@@global.slave_allow_batching
1
SET @@global.slave_allow_batching = FALSE;
SELECT @@global.slave_allow_batching;
@@global.slave_allow_batching
0
SET @@global.slave_allow_batching = @global_start_value;
SELECT @@global.slave_allow_batching;
@@global.slave_allow_batching
0
|