summaryrefslogtreecommitdiff
path: root/mysql-test/r/log_output_basic.result
blob: 481d5862074a18a626098d3534d32454a3923ab0 (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
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
SET @start_value = @@global.log_output;
SELECT @start_value;
@start_value
FILE,TABLE
'#--------------------FN_DYNVARS_065_01------------------------#'
SET @@global.log_output = FILE;
SET @@global.log_output = DEFAULT;
SELECT @@global.log_output;
@@global.log_output
FILE
'Bug# 34876: Documentation specifies a DEFAULT value of TABLE whereas';
'DEFAULT value is FILE. Also note that initial value is different';
'from DEFAULT';
'#---------------------FN_DYNVARS_065_02-------------------------#'
SET @@global.log_output = NULL;
ERROR 42000: Variable 'log_output' can't be set to the value of 'NULL'
SET @@global.log_output = "";
ERROR 42000: Variable 'log_output' can't be set to the value of ''
SELECT @@global.log_output;
@@global.log_output
FILE
'Bug# 34838: Empty value is allowed where as it is not specified in';
'documentation';
'#--------------------FN_DYNVARS_065_03------------------------#'
SET @@global.log_output = 'TABLE';
SELECT @@global.log_output;
@@global.log_output
TABLE
SET @@global.log_output = 'FILE';
SELECT @@global.log_output;
@@global.log_output
FILE
SET @@global.log_output = 'NONE';
SELECT @@global.log_output;
@@global.log_output
NONE
SET @@global.log_output = 'FILE,TABLE';
SELECT @@global.log_output;
@@global.log_output
FILE,TABLE
SET @@global.log_output = 'TABLE,FILE';
SELECT @@global.log_output;
@@global.log_output
FILE,TABLE
SET @@global.log_output = 'NONE,TABLE';
SELECT @@global.log_output;
@@global.log_output
NONE,TABLE
SET @@global.log_output = 'NONE,FILE';
SELECT @@global.log_output;
@@global.log_output
NONE,FILE
SET @@global.log_output = 'FILE,TABLE,NONE';
SELECT @@global.log_output;
@@global.log_output
NONE,FILE,TABLE
SET @@global.log_output = 'TABLE,NONE';
SELECT @@global.log_output;
@@global.log_output
NONE,TABLE
SET @@global.log_output = 'TABLE,TABLE';
SELECT @@global.log_output;
@@global.log_output
TABLE
SET @@global.log_output = ',TABLE';
SELECT @@global.log_output;
@@global.log_output
TABLE
SET @@global.log_output = ',';
SELECT @@global.log_output;
@@global.log_output

SET @@global.log_output = 'TABLE,,FILE,,,';
SELECT @@global.log_output;
@@global.log_output
FILE,TABLE
'#--------------------FN_DYNVARS_065_04-------------------------#'
SET @@global.log_output = -1;
ERROR 42000: Variable 'log_output' can't be set to the value of '-1'
SET @@global.log_output = TAB;
ERROR 42000: Variable 'log_output' can't be set to the value of 'TAB'
SET @@global.log_output = NIL;
ERROR 42000: Variable 'log_output' can't be set to the value of 'NIL'
SET @@global.log_output = 'FIL';
ERROR 42000: Variable 'log_output' can't be set to the value of 'FIL'
SET @@global.log_output = 'T';
ERROR 42000: Variable 'log_output' can't be set to the value of 'T'
SET @@global.log_output = 'TABLE, FILE';
ERROR 42000: Variable 'log_output' can't be set to the value of ' FILE'
SET @@global.log_output = ' TABLE,FILE';
ERROR 42000: Variable 'log_output' can't be set to the value of ' TABLE'
SET @@global.log_output = ', ';
SELECT @@global.log_output;
@@global.log_output

SET @@global.log_output = ' ';
SELECT @@global.log_output;
@@global.log_output

SET @@global.log_output = '   ';
SELECT @@global.log_output;
@@global.log_output

'Bug: The behavior of space in value is not consistent.';
'Some times it is trimmed and some times not.';
'The space before and after value is not accepted where as space';
'between comma is accepted.';
'#-------------------FN_DYNVARS_065_05----------------------------#'
SET @@log_output = 0;
ERROR HY000: Variable 'log_output' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@session.log_output;
ERROR HY000: Variable 'log_output' is a GLOBAL variable
'#----------------------FN_DYNVARS_065_06------------------------#'
SELECT @@log_output = VARIABLE_VALUE 
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES 
WHERE VARIABLE_NAME='log_output';
@@log_output = VARIABLE_VALUE
1
'#---------------------FN_DYNVARS_065_07-------------------------#'
SET @@global.log_output = 0;
ERROR 42000: Variable 'log_output' can't be set to the value of '0'
SELECT @@global.log_output;
@@global.log_output

SET @@global.log_output = 1;
SELECT @@global.log_output;
@@global.log_output
NONE
SET @@global.log_output = 2;
SELECT @@global.log_output;
@@global.log_output
FILE
SET @@global.log_output = 3;
SELECT @@global.log_output;
@@global.log_output
NONE,FILE
SET @@global.log_output = 4;
SELECT @@global.log_output;
@@global.log_output
TABLE
SET @@global.log_output = 5;
SELECT @@global.log_output;
@@global.log_output
NONE,TABLE
SET @@global.log_output = 6;
SELECT @@global.log_output;
@@global.log_output
FILE,TABLE
SET @@global.log_output = 7;
SELECT @@global.log_output;
@@global.log_output
NONE,FILE,TABLE
SET @@global.log_output = 8;
ERROR 42000: Variable 'log_output' can't be set to the value of '8'
'#---------------------FN_DYNVARS_065_08----------------------#'
SET @@global.log_output = TRUE;
SELECT @@global.log_output;
@@global.log_output
NONE
SET @@global.log_output = FALSE;
ERROR 42000: Variable 'log_output' can't be set to the value of '0'
SELECT @@global.log_output;
@@global.log_output
NONE
'#---------------------FN_DYNVARS_065_09----------------------#'
SET log_output = ON;
ERROR HY000: Variable 'log_output' is a GLOBAL variable and should be set with SET GLOBAL
SET global log_output = 'TABLE';
SELECT @@global.log_output;
@@global.log_output
TABLE
SET @@global.log_output = @start_value;
SELECT @@global.log_output;
@@global.log_output
FILE,TABLE