blob: 7a32f92deebf9c38c85e3c52473632c35fe87b2d (
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
|
SET @global_start_value = @@global.character_set_filesystem;
SELECT @global_start_value;
@global_start_value
binary
SET @session_start_value = @@character_set_filesystem;
SELECT @session_start_value;
@session_start_value
binary
SET @session_start_value = @@local.character_set_filesystem;
SELECT @session_start_value;
@session_start_value
binary
SET @session_start_value = @@session.character_set_filesystem;
SELECT @session_start_value;
@session_start_value
binary
'#--------------------FN_DYNVARS_008_01------------------#'
SELECT character_set_filesystem;
ERROR 42S22: Unknown column 'character_set_filesystem' in 'field list'
SET character_set_filesystem=utf8;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
utf8
SET session character_set_filesystem=utf8;
SELECT session character_set_filesystem;
ERROR 42S22: Unknown column 'session' in 'field list'
SET global character_set_filesystem=utf8;
SELECT global character_set_filesystem;
ERROR 42S22: Unknown column 'global' in 'field list'
'#--------------------FN_DYNVARS_008_02-------------------------#'
SET @@character_set_filesystem = latin5;
SET @@character_set_filesystem = DEFAULT;
SELECT @@character_set_filesystem AS DEFAULT_VALUE;
DEFAULT_VALUE
utf8
SET @@global.character_set_filesystem = latin5;
SET @@global.character_set_filesystem = DEFAULT;
SELECT @@global.character_set_filesystem AS DEFAULT_VALUE;
DEFAULT_VALUE
binary
'#--------------------FN_DYNVARS_008_03-------------------------#'
SET @@session.character_set_filesystem = utf8;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
utf8
SET @@global.character_set_filesystem = latin2;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
latin2
SELECT @@session.character_set_filesystem AS res_is_utf8;
res_is_utf8
utf8
SET @@session.character_set_filesystem = latin5;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
latin5
SELECT @@global.character_set_filesystem AS res_is_latin2;
res_is_latin2
latin2
SELECT @@global.character_set_filesystem=
@@session.character_set_filesystem AS res_is_false;
res_is_false
0
'#--------------------FN_DYNVARS_008_04-------------------------#'
SELECT @@character_set_filesystem = @@session.character_set_filesystem AS res;
res
1
SELECT @@character_set_filesystem = @@local.character_set_filesystem AS res;
res
1
'#--------------------FN_DYNVARS_008_05-------------------------#'
SET @@character_set_filesystem = utf8 + latin2;
ERROR 42S22: Unknown column 'utf8' in 'field list'
'#--------------------FN_DYNVARS_008_06-------------------------#'
SET @@session.character_set_filesystem = big5;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
big5
SET @@session.character_set_filesystem = dec8;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
dec8
SET @@session.character_set_filesystem = cp850;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
cp850
SET @@session.character_set_filesystem = hp8;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
hp8
SET @@session.character_set_filesystem = koi8r;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
koi8r
SET @@session.character_set_filesystem = latin1;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
latin1
SET @@session.character_set_filesystem = latin2;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
latin2
SET @@session.character_set_filesystem = swe7;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
swe7
SET @@session.character_set_filesystem = ascii;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
ascii
SET @@session.character_set_filesystem = ujis;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
ujis
SET @@session.character_set_filesystem = sjis;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
sjis
SET @@session.character_set_filesystem = hebrew;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
hebrew
SET @@session.character_set_filesystem = tis620;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
tis620
SET @@session.character_set_filesystem = euckr;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
euckr
SET @@session.character_set_filesystem = koi8u;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
koi8u
SET @@session.character_set_filesystem = gb2312;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
gb2312
SET @@session.character_set_filesystem = greek;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
greek
SET @@session.character_set_filesystem = cp1250;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
cp1250
SET @@session.character_set_filesystem = gbk;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
gbk
SET @@session.character_set_filesystem = latin5;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
latin5
SET @@session.character_set_filesystem = armscii8;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
armscii8
SET @@session.character_set_filesystem = utf8;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
utf8
SET @@session.character_set_filesystem = ucs2;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
ucs2
SET @@session.character_set_filesystem = cp866;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
cp866
SET @@session.character_set_filesystem = keybcs2;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
keybcs2
SET @@session.character_set_filesystem = macce;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
macce
SET @@session.character_set_filesystem = macroman;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
macroman
SET @@session.character_set_filesystem = cp852;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
cp852
SET @@session.character_set_filesystem = latin7;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
latin7
SET @@session.character_set_filesystem = cp1251;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
cp1251
SET @@session.character_set_filesystem = cp1256;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
cp1256
SET @@session.character_set_filesystem = cp1257;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
cp1257
SET @@session.character_set_filesystem = binary;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
binary
SET @@session.character_set_filesystem = geostd8;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
geostd8
SET @@session.character_set_filesystem = cp932;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
cp932
SET @@session.character_set_filesystem = eucjpms;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
eucjpms
'#--------------------FN_DYNVARS_008_07-------------------------#'
SET @@global.character_set_filesystem = big5;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
big5
SET @@global.character_set_filesystem = dec8;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
dec8
SET @@global.character_set_filesystem = cp850;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
cp850
SET @@global.character_set_filesystem = hp8;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
hp8
SET @@global.character_set_filesystem = koi8r;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
koi8r
SET @@global.character_set_filesystem = latin1;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
latin1
SET @@global.character_set_filesystem = latin2;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
latin2
SET @@global.character_set_filesystem = swe7;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
swe7
SET @@global.character_set_filesystem = ascii;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
ascii
SET @@global.character_set_filesystem = ujis;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
ujis
SET @@global.character_set_filesystem = sjis;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
sjis
SET @@global.character_set_filesystem = hebrew;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
hebrew
SET @@global.character_set_filesystem = tis620;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
tis620
SET @@global.character_set_filesystem = euckr;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
euckr
SET @@global.character_set_filesystem = koi8u;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
koi8u
SET @@global.character_set_filesystem = gb2312;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
gb2312
SET @@global.character_set_filesystem = greek;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
greek
SET @@global.character_set_filesystem = cp1250;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
cp1250
SET @@global.character_set_filesystem = gbk;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
gbk
SET @@global.character_set_filesystem = latin5;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
latin5
SET @@global.character_set_filesystem = armscii8;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
armscii8
SET @@global.character_set_filesystem = utf8;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
utf8
SET @@global.character_set_filesystem = ucs2;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
ucs2
SET @@global.character_set_filesystem = cp866;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
cp866
SET @@global.character_set_filesystem = keybcs2;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
keybcs2
SET @@global.character_set_filesystem = macce;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
macce
SET @@global.character_set_filesystem = macroman;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
macroman
SET @@global.character_set_filesystem = cp852;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
cp852
SET @@global.character_set_filesystem = latin7;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
latin7
SET @@global.character_set_filesystem = cp1251;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
cp1251
SET @@global.character_set_filesystem = cp1256;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
cp1256
SET @@global.character_set_filesystem = cp1257;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
cp1257
SET @@global.character_set_filesystem = binary;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
binary
SET @@global.character_set_filesystem = geostd8;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
geostd8
SET @@global.character_set_filesystem = cp932;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
cp932
SET @@global.character_set_filesystem = eucjpms;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
eucjpms
'#--------------------FN_DYNVARS_008_08-------------------------#'
SET @@character_set_filesystem = UTF8;
SELECT @@character_set_filesystem;
@@character_set_filesystem
utf8
SET @@character_set_filesystem = utf8;
SELECT @@character_set_filesystem;
@@character_set_filesystem
utf8
SET @@character_set_filesystem = uTf8;
SELECT @@character_set_filesystem;
@@character_set_filesystem
utf8
'#--------------------FN_DYNVARS_008_09-------------------------#'
SET @@character_set_filesystem = 1;
SELECT @@character_set_filesystem;
@@character_set_filesystem
big5
SET @@character_set_filesystem = 2;
SELECT @@character_set_filesystem;
@@character_set_filesystem
latin2
SET @@character_set_filesystem = 3;
SELECT @@character_set_filesystem;
@@character_set_filesystem
dec8
SET @@character_set_filesystem = 36;
SELECT @@character_set_filesystem;
@@character_set_filesystem
cp866
SET @@character_set_filesystem = 99;
SELECT @@character_set_filesystem;
@@character_set_filesystem
cp1250
SET @@character_set_filesystem = 100;
ERROR 42000: Unknown character set: '100'
SET @total_charset = (SELECT count(*) FROM INFORMATION_SCHEMA.CHARACTER_SETS);
SELECT @total_charset;
@total_charset
40
'#--------------------FN_DYNVARS_008_10-------------------------#'
SET @@character_set_filesystem = abc;
ERROR 42000: Unknown character set: 'abc'
SET @@character_set_filesystem = 1utf8;
ERROR 42000: Unknown character set: '1utf8'
SET @@character_set_filesystem = 0;
ERROR 42000: Unknown character set: '0'
SET @@character_set_filesystem = 1.1;
ERROR 42000: Incorrect argument type to variable 'character_set_filesystem'
SET @@character_set_filesystem = -1;
ERROR 42000: Unknown character set: '-1'
SET @@character_set_filesystem = '';
ERROR 42000: Unknown character set: ''
SET @@character_set_filesystem = 'utf';
ERROR 42000: Unknown character set: 'utf'
SET @@character_set_filesystem = true;
SELECT @@character_set_filesystem AS res_with_true;
res_with_true
big5
SET @@character_set_filesystem = ON;
ERROR 42000: Unknown character set: 'ON'
'#--------------------FN_DYNVARS_008_11-------------------------#'
SET @@global.character_set_filesystem = abc;
ERROR 42000: Unknown character set: 'abc'
SET @@global.character_set_filesystem = 1utf8;
ERROR 42000: Unknown character set: '1utf8'
SET @@global.character_set_filesystem = 0;
ERROR 42000: Unknown character set: '0'
SET @@global.character_set_filesystem = 1.1;
ERROR 42000: Incorrect argument type to variable 'character_set_filesystem'
SET @@global.character_set_filesystem = -1;
ERROR 42000: Unknown character set: '-1'
SET @@global.character_set_filesystem = '';
ERROR 42000: Unknown character set: ''
SET @@global.character_set_filesystem = 'utf';
ERROR 42000: Unknown character set: 'utf'
SET @@global.character_set_filesystem = true;
SET @@global.character_set_filesystem = ON;
ERROR 42000: Unknown character set: 'ON'
'#--------------------FN_DYNVARS_008_12-------------------------#'
SELECT @@global.character_set_filesystem =
(SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='character_set_filesystem') AS res;
res
1
SET @@global.character_set_filesystem = 1;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
big5
SELECT @@global.character_set_filesystem =
(SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='character_set_filesystem') AS res;
res
1
'#--------------------FN_DYNVARS_008_13-------------------------#'
SELECT @@character_set_filesystem =
(SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES
WHERE VARIABLE_NAME='character_set_filesystem') AS res;
res
1
SELECT @@local.character_set_filesystem =
(SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES
WHERE VARIABLE_NAME='character_set_filesystem') AS res;
res
1
SELECT @@session.character_set_filesystem =
(SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES
WHERE VARIABLE_NAME='character_set_filesystem') AS res;
res
1
SET @@global.character_set_filesystem = @global_start_value;
SELECT @@global.character_set_filesystem;
@@global.character_set_filesystem
binary
SET @@session.character_set_filesystem = @session_start_value;
SELECT @@session.character_set_filesystem;
@@session.character_set_filesystem
binary
|