blob: e00be57692e2956afa161a6fc911f541a171ba21 (
plain)
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
|
SET @start_value = @@global.relay_log_purge;
SELECT @start_value;
@start_value
1
'#--------------------FN_DYNVARS_141_01------------------------#'
SET @@global.relay_log_purge = FALSE;
SET @@global.relay_log_purge = DEFAULT;
SELECT @@global.relay_log_purge;
@@global.relay_log_purge
1
'#---------------------FN_DYNVARS_141_02-------------------------#'
SET @@global.relay_log_purge = @start_value;
SELECT @@global.relay_log_purge = TRUE;
@@global.relay_log_purge = TRUE
1
'#--------------------FN_DYNVARS_141_03------------------------#'
SET @@global.relay_log_purge = ON;
SELECT @@global.relay_log_purge;
@@global.relay_log_purge
1
SET @@global.relay_log_purge = OFF;
SELECT @@global.relay_log_purge;
@@global.relay_log_purge
0
SET @@global.relay_log_purge = 0;
SELECT @@global.relay_log_purge;
@@global.relay_log_purge
0
SET @@global.relay_log_purge = 1;
SELECT @@global.relay_log_purge;
@@global.relay_log_purge
1
SET @@global.relay_log_purge = TRUE;
SELECT @@global.relay_log_purge;
@@global.relay_log_purge
1
SET @@global.relay_log_purge = FALSE;
SELECT @@global.relay_log_purge;
@@global.relay_log_purge
0
'#--------------------FN_DYNVARS_141_04-------------------------#'
SET @@global.relay_log_purge = 2;
ERROR 42000: Variable 'relay_log_purge' can't be set to the value of '2'
SET @@global.relay_log_purge = -1;
ERROR 42000: Variable 'relay_log_purge' can't be set to the value of '-1'
SET @@global.relay_log_purge = TRUEF;
ERROR 42000: Variable 'relay_log_purge' can't be set to the value of 'TRUEF'
SET @@global.relay_log_purge = TRUE_F;
ERROR 42000: Variable 'relay_log_purge' can't be set to the value of 'TRUE_F'
SET @@global.relay_log_purge = FALSE0;
ERROR 42000: Variable 'relay_log_purge' can't be set to the value of 'FALSE0'
SET @@global.relay_log_purge = OON;
ERROR 42000: Variable 'relay_log_purge' can't be set to the value of 'OON'
SET @@global.relay_log_purge = ONN;
ERROR 42000: Variable 'relay_log_purge' can't be set to the value of 'ONN'
SET @@global.relay_log_purge = OOFF;
ERROR 42000: Variable 'relay_log_purge' can't be set to the value of 'OOFF'
SET @@global.relay_log_purge = 0FF;
ERROR 42000: Variable 'relay_log_purge' can't be set to the value of '0FF'
SET @@global.relay_log_purge = ' ';
ERROR 42000: Variable 'relay_log_purge' can't be set to the value of ' '
SET @@global.relay_log_purge = " ";
ERROR 42000: Variable 'relay_log_purge' can't be set to the value of ' '
SET @@global.relay_log_purge = '';
ERROR 42000: Variable 'relay_log_purge' can't be set to the value of ''
'#-------------------FN_DYNVARS_141_05----------------------------#'
SET @@session.relay_log_purge = 1;
ERROR HY000: Variable 'relay_log_purge' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@session.relay_log_purge;
ERROR HY000: Variable 'relay_log_purge' is a GLOBAL variable
'#----------------------FN_DYNVARS_141_06------------------------#'
SELECT IF(@@global.relay_log_purge, "ON", "OFF") = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='relay_log_purge';
IF(@@global.relay_log_purge, "ON", "OFF") = VARIABLE_VALUE
1
'#---------------------FN_DYNVARS_141_07----------------------#'
SET @@global.relay_log_purge = 1;
SELECT @@relay_log_purge = @@global.relay_log_purge;
@@relay_log_purge = @@global.relay_log_purge
1
'#---------------------FN_DYNVARS_141_08----------------------#'
SET relay_log_purge = 1;
ERROR HY000: Variable 'relay_log_purge' is a GLOBAL variable and should be set with SET GLOBAL
SELECT global.relay_log_purge;
ERROR 42S02: Unknown table 'global' in field list
SELECT relay_log_purge = @@session.relay_log_purge;
ERROR 42S22: Unknown column 'relay_log_purge' in 'field list'
SET @@global.relay_log_purge = @start_value;
SELECT @@global.relay_log_purge;
@@global.relay_log_purge
1
|