blob: 52ebfc98cdc0b45722830627876f0434d872ec91 (
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
|
SET @start_value = @@global.key_cache_file_hash_size;
SELECT @start_value;
@start_value
512
'#--------------------FN_DYNVARS_056_01------------------------#'
SET @@global.key_cache_file_hash_size = DEFAULT;
SELECT @@global.key_cache_file_hash_size;
@@global.key_cache_file_hash_size
512
'#---------------------FN_DYNVARS_056_02-------------------------#'
SET @@global.key_cache_file_hash_size = @start_value;
SELECT @@global.key_cache_file_hash_size = 300;
@@global.key_cache_file_hash_size = 300
0
'#--------------------FN_DYNVARS_056_03------------------------#'
SET @@global.key_cache_file_hash_size = 128;
SET @@global.key_cache_file_hash_size = 16384;
SELECT @@global.key_cache_file_hash_size;
@@global.key_cache_file_hash_size
16384
'#--------------------FN_DYNVARS_056_04-------------------------#'
SET @@global.key_cache_file_hash_size = -1;
Warnings:
Warning 1292 Truncated incorrect key_cache_file_hash_size value: '-1'
SELECT @@global.key_cache_file_hash_size;
@@global.key_cache_file_hash_size
128
SET @@global.key_cache_file_hash_size = 42949672951;
Warnings:
Warning 1292 Truncated incorrect key_cache_file_hash_size value: '42949672951'
SELECT @@global.key_cache_file_hash_size;
@@global.key_cache_file_hash_size
16384
SET @@global.key_cache_file_hash_size = 10000.01;
ERROR 42000: Incorrect argument type to variable 'key_cache_file_hash_size'
SELECT @@global.key_cache_file_hash_size;
@@global.key_cache_file_hash_size
16384
SET @@global.key_cache_file_hash_size = -1024;
Warnings:
Warning 1292 Truncated incorrect key_cache_file_hash_size value: '-1024'
SELECT @@global.key_cache_file_hash_size;
@@global.key_cache_file_hash_size
128
SET @@global.key_cache_file_hash_size = 99;
Warnings:
Warning 1292 Truncated incorrect key_cache_file_hash_size value: '99'
SELECT @@global.key_cache_file_hash_size;
@@global.key_cache_file_hash_size
128
SET @@global.key_cache_file_hash_size = ON;
ERROR 42000: Incorrect argument type to variable 'key_cache_file_hash_size'
SELECT @@global.key_cache_file_hash_size;
@@global.key_cache_file_hash_size
128
SET @@global.key_cache_file_hash_size = 'test';
ERROR 42000: Incorrect argument type to variable 'key_cache_file_hash_size'
SELECT @@global.key_cache_file_hash_size;
@@global.key_cache_file_hash_size
128
'#-------------------FN_DYNVARS_056_05----------------------------#'
SET @@session.key_cache_file_hash_size = 0;
ERROR HY000: Variable 'key_cache_file_hash_size' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@session.key_cache_file_hash_size;
ERROR HY000: Variable 'key_cache_file_hash_size' is a GLOBAL variable
'#----------------------FN_DYNVARS_056_06------------------------#'
SELECT @@global.key_cache_file_hash_size = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='key_cache_file_hash_size';
@@global.key_cache_file_hash_size = VARIABLE_VALUE
1
SELECT @@key_cache_file_hash_size = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
WHERE VARIABLE_NAME='key_cache_file_hash_size';
@@key_cache_file_hash_size = VARIABLE_VALUE
1
'#---------------------FN_DYNVARS_056_07----------------------#'
SET @@global.key_cache_file_hash_size = TRUE;
Warnings:
Warning 1292 Truncated incorrect key_cache_file_hash_size value: '1'
SELECT @@global.key_cache_file_hash_size;
@@global.key_cache_file_hash_size
128
SET @@global.key_cache_file_hash_size = FALSE;
Warnings:
Warning 1292 Truncated incorrect key_cache_file_hash_size value: '0'
SELECT @@global.key_cache_file_hash_size;
@@global.key_cache_file_hash_size
128
'#---------------------FN_DYNVARS_056_08----------------------#'
SET @@global.key_cache_file_hash_size = 150;
SELECT @@key_cache_file_hash_size = @@global.key_cache_file_hash_size;
@@key_cache_file_hash_size = @@global.key_cache_file_hash_size
1
'#---------------------FN_DYNVARS_056_09----------------------#'
SET key_cache_file_hash_size = 8000;
ERROR HY000: Variable 'key_cache_file_hash_size' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@key_cache_file_hash_size;
@@key_cache_file_hash_size
150
SET local.key_cache_file_hash_size = 10;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'key_cache_file_hash_size = 10' at line 1
SELECT local.key_cache_file_hash_size;
ERROR 42S02: Unknown table 'local' in field list
SET global.key_cache_file_hash_size = 10;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'key_cache_file_hash_size = 10' at line 1
SELECT global.key_cache_file_hash_size;
ERROR 42S02: Unknown table 'global' in field list
SELECT key_cache_file_hash_size = @@session.key_cache_file_hash_size;
ERROR 42S22: Unknown column 'key_cache_file_hash_size' in 'field list'
SET @@global.key_cache_file_hash_size = @start_value;
SELECT @@global.key_cache_file_hash_size;
@@global.key_cache_file_hash_size
512
|