blob: 63c1d8ba4173ee3023a2cbe5c1e9cc44c2d6b0e8 (
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
|
SET @start_global_value = @@global.join_cache_level;
show global variables like 'join_cache_level';
Variable_name Value
join_cache_level #
show session variables like 'join_cache_level';
Variable_name Value
join_cache_level #
select * from information_schema.global_variables where variable_name='join_cache_level';
VARIABLE_NAME VARIABLE_VALUE
JOIN_CACHE_LEVEL #
select * from information_schema.session_variables where variable_name='join_cache_level';
VARIABLE_NAME VARIABLE_VALUE
JOIN_CACHE_LEVEL #
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:
Note 1105 Cast to unsigned converted negative integer to it's positive complement
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;
|