summaryrefslogtreecommitdiff
path: root/mysql-test/suite/sys_vars/r/sync_frm_basic.result
blob: aa5416749a335a91042a5ad545e45c588cab17f1 (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
93
94
95
96
97
SET @start_value = @@global.sync_frm;
SELECT @start_value;
@start_value
1
'#--------------------FN_DYNVARS_169_01------------------------#'
SET @@global.sync_frm = FALSE;
SET @@global.sync_frm = DEFAULT;
SELECT @@global.sync_frm;
@@global.sync_frm
1
'#---------------------FN_DYNVARS_169_02-------------------------#'
SET @@global.sync_frm = DEFAULT;
SELECT @@global.sync_frm = TRUE;
@@global.sync_frm = TRUE
1
'#--------------------FN_DYNVARS_169_03------------------------#'
SET @@global.sync_frm = ON;
SELECT @@global.sync_frm;
@@global.sync_frm
1
SET @@global.sync_frm = OFF;
SELECT @@global.sync_frm;
@@global.sync_frm
0
SET @@global.sync_frm = 0;
SELECT @@global.sync_frm;
@@global.sync_frm
0
SET @@global.sync_frm = 1;
SELECT @@global.sync_frm;
@@global.sync_frm
1
SET @@global.sync_frm = TRUE;
SELECT @@global.sync_frm;
@@global.sync_frm
1
SET @@global.sync_frm = FALSE;
SELECT @@global.sync_frm;
@@global.sync_frm
0
'#--------------------FN_DYNVARS_169_04-------------------------#'
SET @@global.sync_frm = 2;
ERROR 42000: Variable 'sync_frm' can't be set to the value of '2'
SET @@global.sync_frm = -1;
ERROR 42000: Variable 'sync_frm' can't be set to the value of '-1'
SET @@global.sync_frm = TRUEF;
ERROR 42000: Variable 'sync_frm' can't be set to the value of 'TRUEF'
SET @@global.sync_frm = TRUE_F;
ERROR 42000: Variable 'sync_frm' can't be set to the value of 'TRUE_F'
SET @@global.sync_frm = FALSE0;
ERROR 42000: Variable 'sync_frm' can't be set to the value of 'FALSE0'
SET @@global.sync_frm = OON;
ERROR 42000: Variable 'sync_frm' can't be set to the value of 'OON'
SET @@global.sync_frm = ONN;
ERROR 42000: Variable 'sync_frm' can't be set to the value of 'ONN'
SET @@global.sync_frm = OOFF;
ERROR 42000: Variable 'sync_frm' can't be set to the value of 'OOFF'
SET @@global.sync_frm = 0FF;
ERROR 42000: Variable 'sync_frm' can't be set to the value of '0FF'
SET @@global.sync_frm = ' ';
ERROR 42000: Variable 'sync_frm' can't be set to the value of ' '
SET @@global.sync_frm = " ";
ERROR 42000: Variable 'sync_frm' can't be set to the value of ' '
SET @@global.sync_frm = '';
ERROR 42000: Variable 'sync_frm' can't be set to the value of ''
'#-------------------FN_DYNVARS_169_05----------------------------#'
SET @@session.sync_frm = 1;
ERROR HY000: Variable 'sync_frm' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@session.sync_frm;
ERROR HY000: Variable 'sync_frm' is a GLOBAL variable
'#----------------------FN_DYNVARS_169_06------------------------#'
SELECT IF(@@global.sync_frm, "ON", "OFF") = VARIABLE_VALUE 
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES 
WHERE VARIABLE_NAME='sync_frm';
IF(@@global.sync_frm, "ON", "OFF") = VARIABLE_VALUE
1
'#---------------------FN_DYNVARS_169_07----------------------#'
SET @@global.sync_frm = 1;
SELECT @@sync_frm = @@global.sync_frm;
@@sync_frm = @@global.sync_frm
1
'#---------------------FN_DYNVARS_169_08----------------------#'
SET sync_frm = 1;
ERROR HY000: Variable 'sync_frm' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@sync_frm;
@@sync_frm
1
SET global.sync_frm = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sync_frm = 1' at line 1
SELECT global.sync_frm;
ERROR 42S02: Unknown table 'global' in field list
SELECT sync_frm = @@session.sync_frm;
ERROR 42S22: Unknown column 'sync_frm' in 'field list'
SET @@global.sync_frm = @start_value;
SELECT @@global.sync_frm;
@@global.sync_frm
1