blob: fecc886d460047628a4c1587ebb9f29397de6159 (
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
|
SET @start_global_value = @@global.join_cache_level;
select @@global.join_cache_level;
@@global.join_cache_level
1
select @@session.join_cache_level;
@@session.join_cache_level
1
show global variables like 'join_cache_level';
Variable_name Value
join_cache_level 1
show session variables like 'join_cache_level';
Variable_name Value
join_cache_level 1
select * from information_schema.global_variables where variable_name='join_cache_level';
VARIABLE_NAME VARIABLE_VALUE
JOIN_CACHE_LEVEL 1
select * from information_schema.session_variables where variable_name='join_cache_level';
VARIABLE_NAME VARIABLE_VALUE
JOIN_CACHE_LEVEL 1
set global join_cache_level=4;
select @@global.join_cache_level;
@@global.join_cache_level
4
set session join_cache_level=4;
select @@session.join_cache_level;
@@session.join_cache_level
4
set global join_cache_level=1.1;
ERROR 42000: Incorrect argument type to variable 'join_cache_level'
set session join_cache_level=1e1;
ERROR 42000: Incorrect argument type to variable 'join_cache_level'
set global join_cache_level="foo";
ERROR 42000: Incorrect argument type to variable 'join_cache_level'
set global join_cache_level=0;
select @@global.join_cache_level;
@@global.join_cache_level
0
set session join_cache_level=cast(-1 as unsigned int);
Warnings:
Warning 1292 Truncated incorrect join_cache_level value: '18446744073709551615'
select @@session.join_cache_level;
@@session.join_cache_level
8
SET @@global.join_cache_level = @start_global_value;
|